Fixed import error ModuleType (#848)

Co-authored-by: Anton Hvornum <anton.feeds@gmail.com>
This commit is contained in:
Anton Hvornum 2022-01-07 11:54:29 +01:00 committed by GitHub
parent 1234261a7a
commit 93f9d159bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -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

View File

@ -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