Skip to content

Commit

Permalink
Fixes after pre-commit updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
mareuter committed Dec 9, 2024
1 parent 08e57e2 commit f4b9d8d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 10 deletions.
3 changes: 1 addition & 2 deletions src/pylunar/altitude_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
from __future__ import annotations

import sys
from typing import Dict

if sys.version_info >= (3, 10):
from importlib.resources import files
Expand All @@ -28,7 +27,7 @@
__all__ = ["AltitudeDict"]


class AltitudeDict(Dict[str, float]):
class AltitudeDict(dict[str, float]):
"""Dictionary for the Lunar II features requiring solar altitude."""

def load(self, moon_info: MoonInfo) -> None:
Expand Down
2 changes: 1 addition & 1 deletion src/pylunar/lunar_feature_container.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
__all__ = ["LunarFeatureContainer"]

import collections
from collections.abc import Generator
import sys
from typing import Generator

if sys.version_info >= (3, 10):
from importlib.resources import files
Expand Down
14 changes: 7 additions & 7 deletions src/pylunar/pkg_types.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
else:
from typing_extensions import TypeAlias

from typing import List, Tuple, Union
from typing import Union

DateTimeTuple: TypeAlias = Tuple[int, int, int, int, int, Union[int, float]]
MoonPhases: TypeAlias = List[Tuple[str, Union[DateTimeTuple, str]]]
DmsCoordinate: TypeAlias = Tuple[int, int, int]
Range: TypeAlias = Tuple[float, float]
LunarFeatureList: TypeAlias = Tuple[
DateTimeTuple: TypeAlias = Union[tuple[int, ...], tuple[int, int, int, int, int, float]]
MoonPhases: TypeAlias = list[tuple[str, Union[DateTimeTuple, str]]]
DmsCoordinate: TypeAlias = tuple[int, int, int]
Range: TypeAlias = tuple[float, float]
LunarFeatureList: TypeAlias = tuple[
str, float, float, float, float, float, str, str, str, str, Union[str, None]
]
FeatureRow: TypeAlias = Tuple[int, str, float, float, float, float, float, str, str, str, str, str]
FeatureRow: TypeAlias = tuple[int, str, float, float, float, float, float, str, str, str, str, str]

0 comments on commit f4b9d8d

Please sign in to comment.