Skip to content

Commit a0bc8ad

Browse files
davidhaltercarljm
andauthored
Update conformance/tests/directives_type_ignore.py
Co-authored-by: Carl Meyer <carl@oddbird.net>
1 parent ffc8e7c commit a0bc8ad

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

conformance/tests/directives_type_ignore.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,9 @@
1010
# The following type violation should be suppressed.
1111
y: int = "" # type: ignore - additional stuff
1212

13-
# The following type violation should be suppressed.
13+
# The following type violation may be suppressed, depending whether the
14+
# type checker uses the error code `assignment` for invalid assignments,
15+
# and/or how it treats unknown error codes.
1416
z: int = "" # type: ignore[assignment]
1517

1618
# > In some cases, linting tools or other comments may be needed on the same

0 commit comments

Comments
 (0)