from typing import TYPE_CHECKING
if TYPE_CHECKING:
import whatever
def foo(param: 'whatever'): ...
Re:Things to use in Python 3
by bitcurious on Thursday May 16, 2019 @03:19PM
(#19932122)
Thanks! :)
I.e. A module contains a function that accepts a pandas.DataFrame. This module doesn't import pandas.