We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c47837a commit 2b28b57Copy full SHA for 2b28b57
mypy/nodes.py
@@ -597,6 +597,10 @@ def is_trivial_self(self) -> bool:
597
598
@property
599
def setter(self) -> Decorator:
600
+ # Do some consistency checks first.
601
+ first_item = self.items[0]
602
+ assert isinstance(first_item, Decorator)
603
+ assert first_item.var.is_settable_property
604
assert self.setter_index is not None
605
item = self.items[self.setter_index]
606
assert isinstance(item, Decorator)
0 commit comments