Fixed import error ModuleType (#848)
Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
This commit is contained in:
parent
1234261a7a
commit
93f9d159bd
|
|
@ -6,7 +6,8 @@ import shlex
|
|||
import pathlib
|
||||
import subprocess
|
||||
import glob
|
||||
from typing import Union, Dict, Any, List, ModuleType, Optional, Iterator, Mapping
|
||||
from types import ModuleType
|
||||
from typing import Union, Dict, Any, List, Optional, Iterator, Mapping
|
||||
from .disk import get_partitions_in_use, Partition
|
||||
from .general import SysCommand, generate_password
|
||||
from .hardware import has_uefi, is_vm, cpu_vendor
|
||||
|
|
|
|||
|
|
@ -7,7 +7,8 @@ import pathlib
|
|||
import urllib.parse
|
||||
import urllib.request
|
||||
from importlib import metadata
|
||||
from typing import ModuleType, Optional, List
|
||||
from typing import Optional, List
|
||||
from types import ModuleType
|
||||
|
||||
from .output import log
|
||||
from .storage import storage
|
||||
|
|
|
|||
|
|
@ -9,7 +9,8 @@ import sys
|
|||
import urllib.error
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
from typing import Optional, ModuleType, Dict, Union, TYPE_CHECKING
|
||||
from typing import Optional, Dict, Union, TYPE_CHECKING
|
||||
from types import ModuleType
|
||||
# https://stackoverflow.com/a/39757388/929999
|
||||
if TYPE_CHECKING:
|
||||
from .installer import Installer
|
||||
|
|
|
|||
Loading…
Reference in New Issue