Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Mypy should look in metaclass for operations on class objects #2413
Mypy complains about this line:
I understand the notation seems strange, calling shift on a class, but I'm making a library in which this API makes sense. The related code works, and applying
A large source of "errors" for me is using metaclasses for class properties, here's a minimal example:
I suspect it'll apply for anything to do with metaclasses though (as Guido suggested), given the two examples here are pretty disparate.
The property, attribute and method examples now work.