File tree 3 files changed +8
-8
lines changed
3 files changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -870,9 +870,9 @@ def add_invertible_flag(
870
870
)
871
871
872
872
add_invertible_flag (
873
- "--strict-bytes" ,
874
- default = False ,
875
- strict_flag = False ,
873
+ "--no- strict-bytes" ,
874
+ default = True ,
875
+ dest = "strict_bytes" ,
876
876
help = "Disable treating bytearray and memoryview as subtypes of bytes" ,
877
877
group = strictness_group ,
878
878
)
Original file line number Diff line number Diff line change @@ -217,7 +217,7 @@ def __init__(self) -> None:
217
217
self .strict_equality = False
218
218
219
219
# Disable treating bytearray and memoryview as subtypes of bytes
220
- self .strict_bytes = False
220
+ self .strict_bytes = True
221
221
222
222
# Deprecated, use extra_checks instead.
223
223
self .strict_concatenate = False
@@ -386,8 +386,8 @@ def __init__(self) -> None:
386
386
# (undocumented feature).
387
387
self .export_ref_info = False
388
388
389
- self .disable_bytearray_promotion = False
390
- self .disable_memoryview_promotion = False
389
+ self .disable_bytearray_promotion = True
390
+ self .disable_memoryview_promotion = True
391
391
self .force_uppercase_builtins = False
392
392
self .force_union_syntax = False
393
393
Original file line number Diff line number Diff line change 12
12
13
13
from mypy .main import infer_python_executable , process_options
14
14
from mypy .options import Options
15
- from mypy .test .helpers import Suite , assert_equal
15
+ from mypy .test .helpers import Suite
16
16
17
17
18
18
class ArgSuite (Suite ):
@@ -21,7 +21,7 @@ def test_coherence(self) -> None:
21
21
_ , parsed_options = process_options ([], require_targets = False )
22
22
# FIX: test this too. Requires changing working dir to avoid finding 'setup.cfg'
23
23
options .config_file = parsed_options .config_file
24
- assert_equal ( options .snapshot (), parsed_options .snapshot () )
24
+ assert options .snapshot () == parsed_options .snapshot ()
25
25
26
26
def test_executable_inference (self ) -> None :
27
27
"""Test the --python-executable flag with --python-version"""
You can’t perform that action at this time.
0 commit comments