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 538786b commit 048def6Copy full SHA for 048def6
test-data/unit/check-flags.test
@@ -2417,7 +2417,9 @@ f(memoryview(b"asdf"))
2417
[builtins fixtures/primitives.pyi]
2418
2419
[case testStrictBytesEnabledByStrict]
2420
-# flags: --strict
+# flags: --strict --disable-error-code type-arg
2421
+# The type-arg thing is just work around the primitives.pyi isinstance Tuple not having type parameters,
2422
+# which isn't important for this.
2423
def f(x: bytes) -> None: ...
2424
f(bytearray(b"asdf")) # E: Argument 1 to "f" has incompatible type "bytearray"; expected "bytes"
2425
f(memoryview(b"asdf")) # E: Argument 1 to "f" has incompatible type "memoryview"; expected "bytes"
0 commit comments