diff options
| author | Max Nanis | 2026-09-01 10:43:29 -0700 |
|---|---|---|
| committer | Max Nanis | 2026-09-01 10:43:29 -0700 |
| commit | 89ed44f466dc9a93d6f85931fb6eea0e9cbd27f6 (patch) | |
| tree | 8bcce59aa74271e38f056c954ee3e8457dae241a /test_utils/models/contest | |
| parent | d19438ec4ccbbe4415c286c9ae89e3e5706ac553 (diff) | |
| download | generalresearch-89ed44f466dc9a93d6f85931fb6eea0e9cbd27f6.tar.gz generalresearch-89ed44f466dc9a93d6f85931fb6eea0e9cbd27f6.zip | |
working through circular imports, removing __init__ loaded Types / Definitions
Diffstat (limited to 'test_utils/models/contest')
| -rw-r--r-- | test_utils/models/contest/conftest.py | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/test_utils/models/contest/conftest.py b/test_utils/models/contest/conftest.py index 84930b8..91425dc 100644 --- a/test_utils/models/contest/conftest.py +++ b/test_utils/models/contest/conftest.py @@ -3,36 +3,41 @@ from __future__ import annotations from collections.abc import Callable from datetime import UTC, datetime from decimal import Decimal +from typing import TYPE_CHECKING from uuid import uuid4 import pytest from pytest import FixtureRequest as Request from generalresearch.currency import USDCent -from generalresearch.managers.thl.contest_manager import ContestManager -from generalresearch.managers.thl.ledger_manager.thl_ledger import ThlLedgerManager from generalresearch.models.thl.contest import ( ContestEndCondition, ContestPrize, ) -from generalresearch.models.thl.contest.contest import Contest from generalresearch.models.thl.contest.definitions import ( ContestPrizeKind, ContestType, ) -from generalresearch.models.thl.contest.leaderboard import ( - LeaderboardContestCreate, -) -from generalresearch.models.thl.contest.milestone import ( - MilestoneContestCreate, -) from generalresearch.models.thl.contest.raffle import ( ContestEntryType, - RaffleContest, RaffleContestCreate, ) -from generalresearch.models.thl.product import Product -from generalresearch.models.thl.user import User + +if TYPE_CHECKING: + from generalresearch.managers.thl.contest_manager import ContestManager + from generalresearch.managers.thl.ledger_manager.thl_ledger import ThlLedgerManager + from generalresearch.models.thl.contest.contest import Contest + from generalresearch.models.thl.contest.leaderboard import ( + LeaderboardContestCreate, + ) + from generalresearch.models.thl.contest.milestone import ( + MilestoneContestCreate, + ) + from generalresearch.models.thl.contest.raffle import ( + RaffleContest, + ) + from generalresearch.models.thl.product import Product + from generalresearch.models.thl.user import User # === Miscellaneous === |
