MyPy linting conflicting typing with typing.Self
MyPy linting conflicting typing with typing.Self Question: During linting and rewriting of an immutable class, operations do not pass the mypy checker. The class implements operations such as__add__, however, every function that returns a new instance of the same class triggers a typing error Incompatible return value type (got "Point", expected "Self") [return-value]mypy(error) Methods I’ve …