Skip to content

Commit a090d56

Browse files
committed
Remove TODO / comment around suppress_unreachable_warnings
1 parent 2a95a6d commit a090d56

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

mypy/binder.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,6 @@ def __init__(self, id: int, conditional_frame: bool = False) -> None:
4242
self.types: dict[Key, Type] = {}
4343
self.unreachable = False
4444
self.conditional_frame = conditional_frame
45-
46-
# Should be set only if we're entering a frame where it's not
47-
# possible to accurately determine whether or not contained
48-
# statements will be unreachable or not.
49-
#
50-
# Long-term, we should improve mypy to the point where we no longer
51-
# need this field.
5245
self.suppress_unreachable_warnings = False
5346

5447
def __repr__(self) -> str:
@@ -174,7 +167,6 @@ def is_unreachable(self) -> bool:
174167
return any(f.unreachable for f in self.frames)
175168

176169
def is_unreachable_warning_suppressed(self) -> bool:
177-
# TODO: See todo in 'is_unreachable'
178170
return any(f.suppress_unreachable_warnings for f in self.frames)
179171

180172
def cleanse(self, expr: Expression) -> None:

0 commit comments

Comments
 (0)