Closed
Description
mypy doesn't like it when I subclass the builtin class property
:
class blah(property):
pass
Running mypy 0.4.1 or 9e4cfc8 against that file, I get:
test.py:1: error: Invalid type "builtins.property"
But you totally can subclass property and build yourself a customized property decorator.
Looking at some debugger statements it seems like the type has been classified as not being an instance of TypeInfo. I'm afraid I can't offer a PR to fix this because I have no idea where that should be happening.
Metadata
Metadata
Assignees
Labels
No labels