1
0
Fork 0
mirror of https://github.com/ldericher/fftcgtool synced 2025-01-15 15:02:59 +00:00

resolve circular import

This commit is contained in:
Jörn-Michael Miehe 2021-08-17 01:52:06 +02:00
parent 7ed1981588
commit 730775a660
2 changed files with 1 additions and 3 deletions

View file

@ -1,7 +1,5 @@
import yaml import yaml
from .ttsdeck import TTSDeck
_DictOfDicts = dict[str, dict[str, any]] _DictOfDicts = dict[str, dict[str, any]]
@ -43,4 +41,5 @@ class CardDB(_DictOfDicts):
if all([f(content["card"]) for f in filters]) if all([f(content["card"]) for f in filters])
] ]
from .ttsdeck import TTSDeck
return TTSDeck(codes, self) return TTSDeck(codes, self)

View file

@ -59,7 +59,6 @@ def main() -> None:
filters = [[opus_filter]] filters = [[opus_filter]]
else: else:
def element_filter(element: str): def element_filter(element: str):
return lambda card: card.elements == [element] return lambda card: card.elements == [element]