Skip to content

Commit

Permalink
Do not set is_final twice for FuncBase subclasses (#16030)
Browse files Browse the repository at this point in the history
  • Loading branch information
sobolevn authored Sep 3, 2023
1 parent 87365eb commit 92e054b
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions mypy/nodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,6 @@ def __init__(self, items: list[OverloadPart]) -> None:
if items:
# TODO: figure out how to reliably set end position (we don't know the impl here).
self.set_line(items[0].line, items[0].column)
self.is_final = False

@property
def name(self) -> str:
Expand Down Expand Up @@ -772,7 +771,6 @@ def __init__(
# Is this an abstract method with trivial body?
# Such methods can't be called via super().
self.is_trivial_body = False
self.is_final = False
# Original conditional definition
self.original_def: None | FuncDef | Var | Decorator = None
# Used for error reporting (to keep backward compatibility with pre-3.8)
Expand Down

0 comments on commit 92e054b

Please sign in to comment.