Closed bear24rw closed 3 years ago
I have some function where it is okay that I am not using the argument. It would be nice to easily mark those arguments so they don't get flaged.
Possible solutions:
1) if argument name starts with _ then ignore it
_
def foo(_bar): print("_bar is ignored")
2) Unused type annotation
Unused
from something import Unused def foo(bar: Unused): print("bar is ignored")
I just realized option 1 is already supported if I disable U101, closing!
U101
I have some function where it is okay that I am not using the argument. It would be nice to easily mark those arguments so they don't get flaged.
Possible solutions:
1) if argument name starts with
_
then ignore it2)
Unused
type annotation