We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3357aab commit 8861ca0Copy full SHA for 8861ca0
tests/test_mypy.yml
@@ -1474,6 +1474,7 @@
1474
reveal_type(A) # N: Revealed type is "type[attr.AttrsInstance]"
1475
1476
- case: testNothingType
1477
+ regex: true
1478
main: |
1479
from typing import Optional
1480
from attrs import NOTHING, NothingType
@@ -1483,4 +1484,4 @@
1483
1484
1485
takes_nothing(NOTHING)
1486
takes_nothing(None)
- takes_nothing(1) # E: Argument 1 to "takes_nothing" has incompatible type "Literal[1]"; expected "Literal[_Nothing.NOTHING] | None" [arg-type]
1487
+ takes_nothing(1) # E: Argument 1 to "takes_nothing" has incompatible type "Literal\[1\]"; expected "(Optional\[Literal\[_Nothing.NOTHING\]\]|Literal\[_Nothing.NOTHING\] \| None)" \[arg-type\]
0 commit comments