I have a function in python. Is there a way to get the number of lines of code that the function has in the original source file?
e.g.
# main.py
import f1 from mylib
print(loc(f1)) # 3
# mylib
def f1():
pass
return
I have a function in python. Is there a way to get the number of lines of code that the function has in the original source file?
e.g.
# main.py
import f1 from mylib
print(loc(f1)) # 3
# mylib
def f1():
pass
return