Skip to content

Commit

Permalink
Revert type hint in annotation call (#441)
Browse files Browse the repository at this point in the history
  • Loading branch information
george-zubrienko authored Jul 20, 2023
1 parent ac20ad9 commit 4a24b12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dataclasses_json/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def wrap(cls):
return wrap(_cls)


def _process_class(cls, letter_case, undefined) -> Type[DataClassJsonMixin]:
def _process_class(cls, letter_case, undefined):
if letter_case is not None or undefined is not None:
cls.dataclass_json_config = config(letter_case=letter_case,
undefined=undefined)[
Expand Down

4 comments on commit 4a24b12

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
dataclasses_json
   cfg.py51492%77, 81–83
   core.py234996%38–41, 51, 64, 66, 81, 83, 169
   mm.py1892985%33–36, 42–45, 53–56, 62–65, 88, 152–153, 158, 162, 166, 171, 175, 179, 187, 193, 198, 207, 212, 217, 235–242
   stringcase.py25388%59, 76, 97
   undefined.py143299%24, 38
   utils.py1282977%11–24, 44–49, 60–64, 74, 99–100, 108–109, 158, 177, 202
tests
   entities.py220299%229, 235
   test_annotations.py814248%50–67, 78–102, 106–122
   test_api.py142299%139–140
   test_str_subclass.py22195%9
TOTAL242212395% 

Tests Skipped Failures Errors Time
283 1 💤 0 ❌ 0 🔥 3.536s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
dataclasses_json
   cfg.py51492%77, 81–83
   core.py2351096%38–41, 51, 64, 66, 81, 83, 169, 197
   mm.py1903084%33–36, 42–45, 53–56, 62–65, 88, 152–153, 158, 162, 166, 171, 175, 179, 187, 193, 198, 207, 212, 217, 226, 235–242
   stringcase.py25388%59, 76, 97
   undefined.py143299%24, 38
   utils.py1283672%11–24, 44–49, 60–64, 74, 99–100, 108–109, 124–132, 158, 177, 202
tests
   entities.py220299%229, 235
   test_annotations.py814248%50–67, 78–102, 106–122
   test_api.py142497%88, 99, 139–140
   test_str_subclass.py22195%9
   test_union.py981090%87–94, 108–115
TOTAL242414494% 

Tests Skipped Failures Errors Time
283 3 💤 0 ❌ 0 🔥 3.508s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
dataclasses_json
   cfg.py51492%77, 81–83
   core.py235996%38–41, 51, 64, 66, 81, 83, 169
   mm.py1892985%33–36, 42–45, 53–56, 62–65, 88, 152–153, 158, 162, 166, 171, 175, 179, 187, 193, 198, 207, 212, 217, 235–242
   stringcase.py25388%59, 76, 97
   undefined.py141299%24, 38
   utils.py1282977%11–24, 44–49, 60–64, 74, 99–100, 108–109, 158, 177, 202
tests
   entities.py201299%229, 235
   test_annotations.py804248%50–67, 78–102, 106–122
   test_api.py140299%139–140
   test_str_subclass.py22195%9
TOTAL231212395% 

Tests Skipped Failures Errors Time
283 1 💤 0 ❌ 0 🔥 4.176s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
dataclasses_json
   cfg.py51492%77, 81–83
   core.py234996%38–41, 51, 64, 66, 81, 83, 169
   mm.py1892985%33–36, 42–45, 53–56, 62–65, 88, 152–153, 158, 162, 166, 171, 175, 179, 187, 193, 198, 207, 212, 217, 235–242
   stringcase.py25388%59, 76, 97
   undefined.py143299%24, 38
   utils.py1282977%11–24, 44–49, 60–64, 74, 99–100, 108–109, 158, 177, 202
tests
   entities.py220299%229, 235
   test_annotations.py814248%50–67, 78–102, 106–122
   test_api.py142199%139
   test_str_subclass.py22195%9
TOTAL242212295% 

Tests Skipped Failures Errors Time
283 1 💤 0 ❌ 0 🔥 4.277s ⏱️

Please sign in to comment.