Skip to content

Commit

Permalink
Fix pypy workflow
Browse files Browse the repository at this point in the history
Fix invalid import breaking type hint and crashing tests
  • Loading branch information
Rud356 committed Nov 25, 2024
1 parent 118893d commit 7e870d0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12, 3.13, "pypy3.10"]
python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12, 3.13, "pypy-3.10-v7.3.17"]

steps:
- uses: actions/checkout@v2
Expand Down
7 changes: 4 additions & 3 deletions config_framework/types/variable.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,15 @@
)

from . import custom_exceptions
from .abstract.loader import AbstractLoader
from .variable_key import VariableKey

if TYPE_CHECKING:
from .config import BaseConfig
from .abstract.loader import AbstractLoader
from .config import BaseConfig # noqa: Used for mypy


Var = TypeVar("Var")
Source = TypeVar("Source", bound=Union[AbstractLoader, BaseConfig])
Source = TypeVar("Source", bound=Union[AbstractLoader, "BaseConfig"])
CustomSerializer = Callable[["Variable", Var], Any]
CustomDeserializer = Callable[["Variable", Any], Var]
CustomValidator = Callable[["Variable", Var], bool]
Expand Down

0 comments on commit 7e870d0

Please sign in to comment.