Skip to content

Commit a4289ec

Browse files
committed
special case types.DynamicClassAttribute as property-like
This enables typeshed to define types.DynamicClassAttribute as a different class from builtins.property without breakage.
1 parent 2ebc690 commit a4289ec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mypy/semanal.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1684,6 +1684,7 @@ def visit_decorator(self, dec: Decorator) -> None:
16841684
"abc.abstractproperty",
16851685
"functools.cached_property",
16861686
"enum.property",
1687+
"types.DynamicClassAttribute",
16871688
),
16881689
):
16891690
removed.append(i)

0 commit comments

Comments
 (0)