Skip to content

Commit 6b06e58

Browse files
committed
Bump mypy version
1 parent 246e687 commit 6b06e58

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

stagpy/processing.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@
1515
from .datatypes import Field, Varf, Rprof, Varr, Tseries, Vart
1616

1717
if typing.TYPE_CHECKING:
18+
from typing import Optional
19+
1820
from numpy import ndarray
1921
from .stagyydata import StagyyData
2022
from ._step import Step
@@ -110,7 +112,9 @@ def delta_r(step: Step) -> Rprof:
110112
return Rprof((edges[1:] - edges[:-1]), step.rprofs.centers, meta)
111113

112114

113-
def _scale_prof(step: Step, rprof: ndarray, rad: ndarray = None) -> ndarray:
115+
def _scale_prof(
116+
step: Step, rprof: ndarray, rad: Optional[ndarray] = None
117+
) -> ndarray:
114118
"""Scale profile to take sphericity into account."""
115119
rbot, rtop = step.rprofs.bounds
116120
if rbot == 0: # not spherical

stagpy/stagyyparsers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131

3232
def _tidy_names(names: List[str], nnames: int,
33-
extra_names: List[str] = None) -> None:
33+
extra_names: Optional[List[str]] = None) -> None:
3434
"""Truncate or extend names so that its len is nnames.
3535
3636
The list is modified in-place.

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ commands =
2929

3030
[testenv:mypy]
3131
deps =
32-
mypy>=0.910
32+
mypy>=0.991
3333
commands=
3434
mypy --install-types --non-interactive stagpy/
3535

0 commit comments

Comments
 (0)