Skip to content

Commit 3ad71a4

Browse files
committed
refactor: remore redundant type checking conditional block
1 parent 3514139 commit 3ad71a4

1 file changed

Lines changed: 0 additions & 5 deletions

File tree

papyrus/schemas/book.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -198,15 +198,10 @@ class BookList(BaseModel):
198198
pagination: "Pagination"
199199

200200

201-
# Imports at bottom to avoid circular imports
202201
if TYPE_CHECKING:
203202
from papyrus.schemas.common import Pagination
204203
from papyrus.schemas.shelf import ShelfSummary
205204
from papyrus.schemas.tag import Tag
206-
else:
207-
from papyrus.schemas.common import Pagination
208-
from papyrus.schemas.shelf import ShelfSummary
209-
from papyrus.schemas.tag import Tag
210205

211206
Book.model_rebuild()
212207
BookList.model_rebuild()

0 commit comments

Comments
 (0)