Removed TYPE_CHECKING

This commit is contained in:
Ethan Smith-Coss 2023-08-12 16:39:30 +01:00
parent 353dc3f768
commit c20a1fb1c4
Signed by: TheOnePath
GPG Key ID: 4E7D436CE1A0BAF1

View File

@ -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].")