Skip to content

Commit 8861ca0

Browse files
committed
Fix test
1 parent 3357aab commit 8861ca0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_mypy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1474,6 +1474,7 @@
14741474
reveal_type(A) # N: Revealed type is "type[attr.AttrsInstance]"
14751475
14761476
- case: testNothingType
1477+
regex: true
14771478
main: |
14781479
from typing import Optional
14791480
from attrs import NOTHING, NothingType
@@ -1483,4 +1484,4 @@
14831484
14841485
takes_nothing(NOTHING)
14851486
takes_nothing(None)
1486-
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

Comments
 (0)