git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Typing modules



> On 20 Jul 2020, at 16:31, Jonathan Gossage <jgossage at gmail.com> wrote:
> 
> I have the following code and I would like to type the variable *contents*:
> 
> contents: something = importlib._import_module(name)
> 
> 
> I have been unable to find out what *something* should be.

types.ModuleType

> 
> -- 
> Jonathan Gossage
> -- 
> https://mail.python.org/mailman/listinfo/python-list