File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1349,12 +1349,12 @@ def set_strict_flags() -> None:
1349
1349
1350
1350
# Set build flags.
1351
1351
if special_opts .find_occurrences :
1352
- state .find_occurrences = special_opts .find_occurrences .split ("." )
1353
- assert state .find_occurrences is not None
1354
- if len (state .find_occurrences ) < 2 :
1352
+ _find_occurrences = tuple (special_opts .find_occurrences .split ("." ))
1353
+ if len (_find_occurrences ) < 2 :
1355
1354
parser .error ("Can only find occurrences of class members." )
1356
- if len (state . find_occurrences ) != 2 :
1355
+ if len (_find_occurrences ) != 2 :
1357
1356
parser .error ("Can only find occurrences of non-nested class members." )
1357
+ state .find_occurrences = _find_occurrences # type: ignore[assignment]
1358
1358
1359
1359
# Set reports.
1360
1360
for flag , val in vars (special_opts ).items ():
You can’t perform that action at this time.
0 commit comments