So if I have 2 files that look like this:
File 1
import class1
import method1
def method2(something):
result = method1(classname=class1)
File 2
def method1(classname):
some_result = classname.resultfinder
return some_result
Will this work?
I mean, since I am not importing class1 in the file where method1 lives, but method1 still ends up using class1.
Will method1 have access to class1 via the import made in File 1 where method 1 is imported to?
I think that should be fine – imagine having to import every possible type that could be passed to a function at runtime. I don’t think a “dynamic” language like that would last very long.