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 446d5da commit 9170fb1Copy full SHA for 9170fb1
mypy/main.py
@@ -939,7 +939,7 @@ def add_invertible_flag(
939
940
add_invertible_flag(
941
"--disallow-str-iteration",
942
- default=False,
+ default=True,
943
strict_flag=False,
944
help="Disallow iterating over str instances",
945
group=strictness_group,
mypy/options.py
@@ -240,7 +240,7 @@ def __init__(self) -> None:
240
self.strict_bytes = False
241
242
# Disallow iterating over str instances or using them as Sequence[T]
243
- self.disallow_str_iteration = False
+ self.disallow_str_iteration = True
244
245
# Deprecated, use extra_checks instead.
246
self.strict_concatenate = False
0 commit comments