You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
hybrid.pyi: decorators should return the same type (#164)
* hybrid.pyi: decorators should return the same type
This code triggered warnings:
class SomeModel(...):
@hybrid_property
def stuff(self):
...
@properties.setter
def stuff(self, value):
...
obj = SomeModel()
obj.stuff = ...
The same is done in "python/typeshed" repository in "stdlib/builtins.pyi" in class property.
* reformat code
* add hybrid tests
Co-authored-by: Federico Caselli <cfederico87@gmail.com>
0 commit comments