Removed TYPE_CHECKING
This commit is contained in:
parent
353dc3f768
commit
c20a1fb1c4
|
|
@ -1,16 +1,12 @@
|
||||||
import sys
|
import sys
|
||||||
import clog
|
import clog
|
||||||
import typing
|
|
||||||
import soypak.deps.bottler as bottler
|
import soypak.deps.bottler as bottler
|
||||||
|
|
||||||
if typing.TYPE_CHECKING:
|
|
||||||
import soypak.deps.transaction as transaction
|
|
||||||
|
|
||||||
|
|
||||||
_log = clog.Logger.get("runtime_logger")
|
_log = clog.Logger.get("runtime_logger")
|
||||||
|
|
||||||
|
|
||||||
def install_packages(tx: transaction.Transaction, pkgs: list[bottler.PackageItem]):
|
def install_packages(tx, pkgs: list[bottler.PackageItem]):
|
||||||
_log.debug(f"The transaction goal is {tx.pkg_goal=}. Attempting to perform installation.")
|
_log.debug(f"The transaction goal is {tx.pkg_goal=}. Attempting to perform installation.")
|
||||||
if not isinstance(pkgs, bottler.PackageItem):
|
if not isinstance(pkgs, bottler.PackageItem):
|
||||||
_log.error(f"TypeError: {pkgs=}, expected list[PackageItem].")
|
_log.error(f"TypeError: {pkgs=}, expected list[PackageItem].")
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user