Skip to content

Commit

Permalink
Make py38 compatible. Set python_version in mypy config
Browse files Browse the repository at this point in the history
  • Loading branch information
BSchilperoort committed Jul 31, 2023
1 parent 012bf10 commit e9d0611
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,7 @@ target-version = ['py39', 'py310', 'py311']

[tool.mypy]
ignore_missing_imports = true # Preferably false, but matplotlib, scipy and statsmodels are missing typing stubs
python_version = "3.9"

[tool.coverage.run]
branch = true
Expand Down
3 changes: 2 additions & 1 deletion src/dtscalibration/datastore_utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# coding=utf-8
from typing import TYPE_CHECKING
from typing import Optional
from typing import Union

import matplotlib.pyplot as plt
import numpy as np
Expand All @@ -13,7 +14,7 @@

def check_dims(
ds: "DataStore",
labels: list[str] | tuple[str],
labels: Union[list[str], tuple[str]],
correct_dims: Optional[tuple[str]] = None,
) -> None:
"""
Expand Down

0 comments on commit e9d0611

Please sign in to comment.