Skip to content

Commit 29a47f1

Browse files
committed
Fix selfcheck
1 parent b6411cf commit 29a47f1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

mypy/semanal.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1567,7 +1567,9 @@ def analyze_property_with_multi_part_definition(
15671567
)
15681568
return bare_setter_type
15691569

1570-
def _is_valid_property_decorator(self, deco: Expression, property_name: str) -> bool:
1570+
def _is_valid_property_decorator(
1571+
self, deco: Expression, property_name: str
1572+
) -> TypeGuard[MemberExpr]:
15711573
if not isinstance(deco, MemberExpr):
15721574
return False
15731575
if not isinstance(deco.expr, NameExpr) or deco.expr.name != property_name:

0 commit comments

Comments
 (0)