Skip to content

Commit

Permalink
Fix Python 3.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
brianschubert committed Mar 13, 2024
1 parent 2953932 commit fabaf7b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/sixs_bin/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,14 @@
import importlib.metadata
import importlib.resources
import pathlib
from typing import TYPE_CHECKING, Final, Literal, TypeAlias
from typing import TYPE_CHECKING, Final, Literal

# Py6S may not be installed.
if TYPE_CHECKING:
from importlib.abc import Traversable

from Py6S import SixS
from typing_extensions import TypeAlias

SixSVersion: TypeAlias = Literal["1.1", "2.1"]

Expand Down
2 changes: 1 addition & 1 deletion test/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def test_exec_matches(sixs_version, manual_input_file, helpers) -> None:
# between runs have been observed.
rel_tol = 1e-3 if sys.platform in ("darwin", "win32") else 1e-09

for d_line, c_line in zip(direct_lines, cli_lines, strict=True):
for d_line, c_line in zip(direct_lines, cli_lines):
helpers.assert_embedded_isclose(d_line, c_line, rel_tol=rel_tol)


Expand Down

0 comments on commit fabaf7b

Please sign in to comment.