Skip to content

Commit cd0d27c

Browse files
committed
add back
1 parent 04187b7 commit cd0d27c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test-data/unit/check-flags.test

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2546,7 +2546,7 @@ x: int = "" # E: Incompatible types in assignment (expression has type "str", v
25462546
# flags: --disable-bytearray-promotion --strict-equality --warn-unreachable
25472547
def f(x: bytes) -> None: ...
25482548
f(bytearray(b"asdf")) # E: Argument 1 to "f" has incompatible type "bytearray"; expected "bytes"
2549-
2549+
f(memoryview(b"asdf"))
25502550
ba = bytearray(b"")
25512551
if ba == b"":
25522552
f(ba) # E: Argument 1 to "f" has incompatible type "bytearray"; expected "bytes"
@@ -2561,7 +2561,7 @@ if bytes() == ba:
25612561
[case testDisableMemoryviewPromotion]
25622562
# flags: --disable-memoryview-promotion
25632563
def f(x: bytes) -> None: ...
2564-
2564+
f(bytearray(b"asdf"))
25652565
f(memoryview(b"asdf")) # E: Argument 1 to "f" has incompatible type "memoryview"; expected "bytes"
25662566
[builtins fixtures/primitives.pyi]
25672567

0 commit comments

Comments
 (0)