mirror of
https://github.com/mwisnowski/mtg_python_deckbuilder.git
synced 2025-12-17 08:00:13 +01:00
fix(lint): improved type checking and code maintainability
This commit is contained in:
parent
83fe527979
commit
40023e93b8
62 changed files with 187 additions and 197 deletions
|
|
@ -11,9 +11,9 @@ def _load_applier():
|
|||
root = Path(__file__).resolve().parents[2]
|
||||
mod_path = root / 'code' / 'tagging' / 'bracket_policy_applier.py'
|
||||
spec = importlib.util.spec_from_file_location('bracket_policy_applier', str(mod_path))
|
||||
mod = importlib.util.module_from_spec(spec) # type: ignore[arg-type]
|
||||
mod = importlib.util.module_from_spec(spec)
|
||||
assert spec and spec.loader
|
||||
spec.loader.exec_module(mod) # type: ignore[assignment]
|
||||
spec.loader.exec_module(mod)
|
||||
return mod
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue