Skip to content

Commit

Permalink
Fix old school tuple
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinche committed Oct 16, 2023
1 parent 5950470 commit 0eabb3a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_mypy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1356,6 +1356,7 @@
reveal_type(B) # N: Revealed type is "def (foo: builtins.int) -> main.B"
- case: testFields
regex: true
main: |
from attrs import define, fields
Expand All @@ -1364,7 +1365,7 @@
a: int
b: str
reveal_type(fields(A)) # N: Revealed type is "tuple[attr.Attribute[builtins.int], attr.Attribute[builtins.str], fallback=main.A.__main_A_AttrsAttributes__]"
reveal_type(fields(A)) # N: Revealed type is "[Tt]uple\[attr.Attribute\[builtins.int\], attr.Attribute\[builtins.str\], fallback=main.A.__main_A_AttrsAttributes__\]"
- case: testFieldsError
regex: true
Expand Down

0 comments on commit 0eabb3a

Please sign in to comment.