Skip to content

Commit 1c388b6

Browse files
experiment with removing v = None
This attempts to get at mypy/config_parser.py:620: error: Incompatible types in assignment (expression has type tuple[int, int], variable has type Optional[bool]) [assignment] however, I think this leaves v undefined in the else path, which is bad
1 parent f90492b commit 1c388b6

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

mypy/config_parser.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,6 @@ def parse_section(
600600
else:
601601
continue
602602
ct = type(dv)
603-
v = None
604603
try:
605604
if ct is bool:
606605
# ConfigParser has an equivalent (but poorly-stubbed) getboolean method,

0 commit comments

Comments
 (0)