Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
k0t3n committed Aug 16, 2024
1 parent 8fd9f5d commit 59387d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
runs-on: "ubuntu-latest"

strategy:
fail-fast: false
matrix:
python-version: [ "3.8", "3.9", "3.10", "3.11", "3.12"]

Expand Down
2 changes: 1 addition & 1 deletion theine/adapters/django.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self, name: str, params: Dict[str, Any]):
policy = options.get("POLICY", "tlfu")
self.cache = Theine(policy, self._max_entries)

def _timeout_seconds(self, timeout: Optional[Union[float, Type[DEFAULT_TIMEOUT]]]) -> float:
def _timeout_seconds(self, timeout: Optional[Union[float, DEFAULT_TIMEOUT]]) -> float:
if timeout == DEFAULT_TIMEOUT:
return cast(float, self.default_timeout)
return cast(float, timeout)
Expand Down

0 comments on commit 59387d9

Please sign in to comment.