Skip to content

Commit a6b55e4

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

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎conformance/tests/directives_type_ignore.py‎

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

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.
13+
# The following type violation may be suppressed, if the type checker
14+
# actually uses the code `an-empty-str-is-not-an-int` (unlikely!), or if
15+
# it treats unknown codes as blanket ignores.
1616
z: int = "" # type: ignore[an-empty-str-is-not-an-int] # E?
1717

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

0 commit comments

Comments
 (0)