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
Functions decorated with the @overload decorator of the typing module should have an empty body, usually denoted with ellipsis, as in the default example:
@overloaddefprocess(response: None) ->None:
...
However, WPS reports this usage as WPS428 Found statement that has no effect.
How it should be
Ellipsis should be accepted as the body of @overload functions.
The text was updated successfully, but these errors were encountered:
Thanks! I was not aware about this new rule in pydocstyle! We would need to swith off its rule for that.
I really believe that this solution is more readable than ....
Bug report
What's wrong
Functions decorated with the
@overload
decorator of thetyping
module should have an empty body, usually denoted with ellipsis, as in the default example:However, WPS reports this usage as
WPS428 Found statement that has no effect
.How it should be
Ellipsis should be accepted as the body of
@overload
functions.The text was updated successfully, but these errors were encountered: