Skip to content

Commit

Permalink
Add more typing_extensions for lower Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
golmschenk committed Feb 6, 2024
1 parent 41e1efe commit 05880de
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ cov = [
]

[[tool.hatch.envs.all.matrix]]
python = ["3.9", "3.10", "3.11", "3.12"]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.types]
dependencies = [
Expand Down
5 changes: 4 additions & 1 deletion src/qusi/finite_standard_light_curve_observation_dataset.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
from dataclasses import dataclass
from functools import partial
from typing import List, Callable, Any, Self
try:
from typing import List, Callable, Any, Self
except ImportError:
from typing_extensions import List, Callable, Any, Self

import numpy as np
from torch.utils.data import Dataset
Expand Down

0 comments on commit 05880de

Please sign in to comment.