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
Is your feature request related to a problem? Please describe
Linting this module gives missing-function-docstring for the two @typing.overload functions:
importtyping@typing.overloaddeff(x: str) ->bytes:
pass@typing.overloaddeff(x: bytes) ->str:
passdeff(x):
"""This is a docstring."""ifisinstance(x, str):
returnx.encode()
else:
returnx.decode()
Describe the solution you'd like
I think docstrings should only go on the function implementation, not the @typing.overload-decorated stubs, so it would be nice if pylint didn't trigger missing-function-docstring for those.
Is your feature request related to a problem? Please describe
Linting this module gives
missing-function-docstring
for the two@typing.overload
functions:Describe the solution you'd like
I think docstrings should only go on the function implementation, not the
@typing.overload
-decorated stubs, so it would be nice if pylint didn't triggermissing-function-docstring
for those.Additional context
https://www.python.org/dev/peps/pep-0484/#function-method-overloading
The text was updated successfully, but these errors were encountered: