You’re looking for types.ModuleType
.
More Related Contents:
- How to specify multiple return types using type-hints
- What are type hints in Python 3.5?
- Using the class as a type hint for arguments in its methods [duplicate]
- Type hint for a function that returns only a specific set of values
- Validating detailed types in python dataclasses
- How to use type hints in python 3.6?
- Type annotations for *args and **kwargs
- Subclass in type hinting
- How can I tell PyCharm what type a parameter is expected to be?
- How should I use the Optional type hint?
- How do I add default parameters to functions when using type hinting?
- What’s the difference between a constrained TypeVar and a Union?
- typing: Dynamically Create Literal Alias from List of Valid Values
- Exclude type in Python typing annotation
- Can you annotate return type when value is instance of cls?
- Python 3 dictionary with known keys typing
- Defining a recursive type hint in Python?
- Difference between defining typing.Dict and dict?
- Can I omit Optional if I set default to None?
- Type hinting in Python 2
- Type hints with user defined classes
- Using List/Tuple/etc. from typing vs directly referring type as list/tuple/etc
- How do I annotate types in a for-loop?
- mypy, type hint: Union[float, int] -> is there a Number type?
- Name not defined in type annotation [duplicate]
- Python 3.5 type hinting does not result in an error
- Type hints in namedtuple
- How to annotate function that takes a tuple of variable length? (variadic tuple type annotation)
- Recursive Typing in Python 3.5+ [duplicate]
- Type Hinting for objects of type that’s being defined [duplicate]