Skip to content

Commit bf14458

Browse files
committed
Add stubtest test for property aliases
1 parent 45ee5a3 commit bf14458

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

mypy/test/teststubtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -850,11 +850,13 @@ def test_property(self) -> Iterator[Case]:
850850
class Good:
851851
@property
852852
def read_only_attr(self) -> int: ...
853+
read_only_attr_alias = read_only_attr
853854
""",
854855
runtime="""
855856
class Good:
856857
@property
857858
def read_only_attr(self): return 1
859+
read_only_attr_alias = read_only_attr
858860
""",
859861
error=None,
860862
)

0 commit comments

Comments
 (0)