Skip to content

Commit

Permalink
fix: regression caused by conditional import Sequence for pagination.…
Browse files Browse the repository at this point in the history
…py (#274)

- Import Sequence directly from collections.abc
- Remove conditional import using TYPE_CHECKING
- Add noqa comment to suppress potential linter warnings


Closes #272 

Signed-off-by: Noam Stolero <[email protected]>
  • Loading branch information
noamsto authored Oct 28, 2024
1 parent 74c58da commit 885827b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions advanced_alchemy/service/pagination.py
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
from __future__ import annotations

from collections.abc import Sequence # noqa: TCH003
from dataclasses import dataclass
from typing import TYPE_CHECKING, Generic
from typing import Generic
from uuid import UUID

from typing_extensions import TypeVar

if TYPE_CHECKING:
from collections.abc import Sequence

T = TypeVar("T")
C = TypeVar("C", int, str, UUID)

Expand Down

0 comments on commit 885827b

Please sign in to comment.