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 ac6151a commit 0bbeed5Copy full SHA for 0bbeed5
mypy/main.py
@@ -870,9 +870,9 @@ def add_invertible_flag(
870
)
871
872
add_invertible_flag(
873
- "--strict-bytes",
874
- default=False,
875
- strict_flag=False,
+ "--no-strict-bytes",
+ default=True,
+ dest="strict_bytes",
876
help="Disable treating bytearray and memoryview as subtypes of bytes",
877
group=strictness_group,
878
mypy/options.py
@@ -217,7 +217,7 @@ def __init__(self) -> None:
217
self.strict_equality = False
218
219
# Disable treating bytearray and memoryview as subtypes of bytes
220
- self.strict_bytes = False
+ self.strict_bytes = True
221
222
# Deprecated, use extra_checks instead.
223
self.strict_concatenate = False
0 commit comments