Skip to content

Commit 0e4649c

Browse files
committed
Enable strict_bytes by default
1 parent ac6151a commit 0e4649c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ def __init__(self) -> None:
217217
self.strict_equality = False
218218

219219
# Disable treating bytearray and memoryview as subtypes of bytes
220-
self.strict_bytes = False
220+
self.strict_bytes = True
221221

222222
# Deprecated, use extra_checks instead.
223223
self.strict_concatenate = False

0 commit comments

Comments
 (0)