Skip to content

Commit

Permalink
fix: Always import Contract to avoid NameError
Browse files Browse the repository at this point in the history
For some reason, Contract is needed even though it is used only for Mypy
annotation.
  • Loading branch information
rht committed Mar 4, 2022
1 parent 6ee5e58 commit 6157807
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions economicsl/accounting.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
from typing import Any, List, Dict, TYPE_CHECKING
from typing import Any, List, Dict

from .abce import NotEnoughGoods, Inventory, eps
from .contract import Contracts

if TYPE_CHECKING:
from .contract import Contract
# Mypy
from .contract import Contract


class Account:
Expand Down

0 comments on commit 6157807

Please sign in to comment.