SQLAlchemy 1.2 was recently released, and changed its behavior of hybrid_property a bit to line up with how Python's @property works. Specifically, it's now necessary to use the same method name for both the getter and setter, as seen in the example here (both are def name(...)): http://docs.sqlalchemy.org/en/latest/changelog/migration_12.html#hybrid-attributes-support-reuse-among-subclasses-redefinition-of-getter
This is causing mypy to error though, it now emits two (contradictory?) errors on the @name.setter line:
test.py:11: error: Name 'name' already defined
test.py:11: error: Name 'name' is not defined
SQLAlchemy 1.2 was recently released, and changed its behavior of
hybrid_propertya bit to line up with how Python's@propertyworks. Specifically, it's now necessary to use the same method name for both the getter and setter, as seen in the example here (both aredef name(...)): http://docs.sqlalchemy.org/en/latest/changelog/migration_12.html#hybrid-attributes-support-reuse-among-subclasses-redefinition-of-getterThis is causing mypy to error though, it now emits two (contradictory?) errors on the
@name.setterline: