pmb: Remove unused imports (MR 2545)

This commit is contained in:
Stefan Hansson 2025-02-04 16:21:21 +01:00 committed by Oliver Smith
parent 63fce4fcb5
commit 0620232819
No known key found for this signature in database
GPG key ID: 5AE7F5513E0885CB
7 changed files with 5 additions and 12 deletions

View file

@ -4,7 +4,7 @@
import sys import sys
import os import os
import traceback import traceback
from typing import Any, Optional, TYPE_CHECKING from typing import TYPE_CHECKING
from pathlib import Path from pathlib import Path
from pmb.helpers.exceptions import BuildFailedError, NonBugError from pmb.helpers.exceptions import BuildFailedError, NonBugError

View file

@ -1,7 +1,6 @@
# Copyright 2023 Oliver Smith # Copyright 2023 Oliver Smith
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import os import os
from pmb.core.arch import Arch
from pmb.core.context import get_context from pmb.core.context import get_context
from pmb.core.pkgrepo import pkgrepo_default_path from pmb.core.pkgrepo import pkgrepo_default_path
from pmb.helpers import logging from pmb.helpers import logging
@ -13,7 +12,7 @@ import pmb.aportgen.linux
import pmb.aportgen.musl import pmb.aportgen.musl
import pmb.aportgen.grub_efi import pmb.aportgen.grub_efi
import pmb.config import pmb.config
from pmb.types import AportGenEntry, PmbArgs from pmb.types import AportGenEntry
import pmb.helpers.cli import pmb.helpers.cli

View file

@ -5,9 +5,9 @@ import glob
from pmb.helpers import logging from pmb.helpers import logging
import os import os
from pathlib import Path from pathlib import Path
from typing import Any, TypedDict from typing import TypedDict
import pmb.chroot import pmb.chroot
from pmb.types import Env, PmbArgs from pmb.types import Env
import pmb.helpers.cli import pmb.helpers.cli
from pmb.core import Chroot from pmb.core import Chroot

View file

@ -2,10 +2,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
from __future__ import annotations from __future__ import annotations
import enum
from typing import Optional
from collections.abc import Generator
from pathlib import Path, PosixPath, PurePosixPath
from pmb.types import PmbArgs from pmb.types import PmbArgs
from pmb.helpers import frontend from pmb.helpers import frontend

View file

@ -2,7 +2,7 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import copy import copy
from typing import Any, Generic, Optional, TypeVar, overload from typing import Any, Generic, TypeVar, overload
from collections.abc import Callable from collections.abc import Callable
import inspect import inspect

View file

@ -7,7 +7,6 @@ import socket
import time import time
import pmb.chroot import pmb.chroot
from pmb.types import PmbArgs
import pmb.helpers.run import pmb.helpers.run
from pmb.core import Chroot from pmb.core import Chroot

View file

@ -2,7 +2,6 @@
# SPDX-License-Identifier: GPL-3.0-or-later # SPDX-License-Identifier: GPL-3.0-or-later
import os import os
from pathlib import Path from pathlib import Path
from typing import Optional
from pmb.core.arch import Arch from pmb.core.arch import Arch
from pmb.helpers import logging from pmb.helpers import logging
import shlex import shlex