Is there a way to automatically remove (or give a warning) when a function is not being used in python?
def foo(): # warning unused
print("foo")
def bar():
print("bar")
if __name__ == "__main__":
bar()
Is there a way to automatically remove (or give a warning) when a function is not being used in python?
def foo(): # warning unused
print("foo")
def bar():
print("bar")
if __name__ == "__main__":
bar()