No error when attempting to use property object as that property's type #6192
Labels
priority-2-low
topic-descriptors
Properties, class vs. instance attributes
topic-named-tuple
topic-runtime-semantics
mypy doesn't model runtime semantics correctly
or a mock-up repro if the source is private. We would appreciate
if you try to simplify your case to a minimal repro.
mypy a.py
produces no output.An error at
C.a * 2
, as it will cause an error at runtime:TypeError: unsupported operand type(s) for *: 'property' and 'int'
python --version
: 3.7.2mypy --version
: 0.660+dev.97d7760dca6d95806a97b02992ae88a082898a0eDo you see the same issue after installing mypy from Git master? Yes
The text was updated successfully, but these errors were encountered: