Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
load_configPython モジュールをロードして返す関数があります。
load_config
import imp def load_config(path: str): return imp.load_source('config', path) print(type(load_config('config.py')))
このスニペットは<class 'module'>.
<class 'module'>
load_configMypy で戻り値に注釈を付けるにはどうすればよいですか?