Skip to content

Commit

Permalink
fix bitrot in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
huwcbjones committed Sep 15, 2023
1 parent 10bf212 commit 9af39bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_field_for_schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,8 +185,8 @@ def test_optional_multiple_types(self):
field_for_schema(Optional[Union[int, str]]),
union_field.Union(
[
(int, fields.Integer(required=True)),
(str, fields.String(required=True)),
(int, fields.Integer(required=True)),
],
required=False,
dump_default=None,
Expand Down
2 changes: 1 addition & 1 deletion tests/test_mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
reveal_type(user.email) # N: Revealed type is "builtins.str"
User(id=42, email="user@email.com") # E: Argument "id" to "User" has incompatible type "int"; expected "str" [arg-type]
User(id="a"*32, email=["not", "a", "string"]) # E: Argument "email" to "User" has incompatible type "List[str]"; expected "str" [arg-type]
User(id="a"*32, email=["not", "a", "string"]) # E: Argument "email" to "User" has incompatible type "list[str]"; expected "str" [arg-type]
- case: marshmallow_dataclass_keyword_arguments
mypy_config: |
follow_imports = silent
Expand Down

0 comments on commit 9af39bb

Please sign in to comment.