sqlalchemy-stubs icon indicating copy to clipboard operation
sqlalchemy-stubs copied to clipboard

Defining a setter on a hybrid_property method raises an already defined error in mypy

Open mattdornfeld opened this issue 5 years ago • 0 comments

Basic reproduce

Class Model:
    @hybrid_property
    def property(self):
        pass

    @property.setter # error appears on this line
    def property(self):
        pass

mattdornfeld avatar Dec 23 '19 04:12 mattdornfeld