Is it possible to hint a non-native type without importing the class it comes from?
For example, I have a function that requires a 'pandas.DataFrame' object and uses its 'index' method. In this case, it is useless to import 'pandas', yet I cannot declare my input without importing the latter since 'DataFrame' is not a native python type:
def foo(x: DataFrame):
print(x.index)