Skip to content

Commit 9170fb1

Browse files
experiment enabling by default
1 parent 446d5da commit 9170fb1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

mypy/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -939,7 +939,7 @@ def add_invertible_flag(
939939

940940
add_invertible_flag(
941941
"--disallow-str-iteration",
942-
default=False,
942+
default=True,
943943
strict_flag=False,
944944
help="Disallow iterating over str instances",
945945
group=strictness_group,

mypy/options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ def __init__(self) -> None:
240240
self.strict_bytes = False
241241

242242
# Disallow iterating over str instances or using them as Sequence[T]
243-
self.disallow_str_iteration = False
243+
self.disallow_str_iteration = True
244244

245245
# Deprecated, use extra_checks instead.
246246
self.strict_concatenate = False

0 commit comments

Comments
 (0)