Closed firesurfer closed 1 year ago
You can ignore on individual lines.
def method(abc: str, x: int): # noqa: F811
Or use the singledispatch-style register method after the first definition.
@method.register
def _(abc: str, x: int):
Thanks a lot. This is exactly what I was looking for.
Hi, I realized when linting python code - in my case with flake8. The linter reports redefintion warning.
Example code:
save it e.g. as test.py
gives the result ( I removed the non related outputs):