From 730775a660bef6b4f7951d9f0662ce30c8c0914a Mon Sep 17 00:00:00 2001 From: LDericher <40151420+ldericher@users.noreply.github.com> Date: Tue, 17 Aug 2021 01:52:06 +0200 Subject: [PATCH] resolve circular import --- fftcg/carddb.py | 3 +-- main.py | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/fftcg/carddb.py b/fftcg/carddb.py index ef6743f..77f9fda 100644 --- a/fftcg/carddb.py +++ b/fftcg/carddb.py @@ -1,7 +1,5 @@ import yaml -from .ttsdeck import TTSDeck - _DictOfDicts = dict[str, dict[str, any]] @@ -43,4 +41,5 @@ class CardDB(_DictOfDicts): if all([f(content["card"]) for f in filters]) ] + from .ttsdeck import TTSDeck return TTSDeck(codes, self) diff --git a/main.py b/main.py index 685ff76..ccccf84 100755 --- a/main.py +++ b/main.py @@ -59,7 +59,6 @@ def main() -> None: filters = [[opus_filter]] else: - def element_filter(element: str): return lambda card: card.elements == [element]