Skip to content

Commit 42435b6

Browse files
authored
Merge pull request #358 from gerlero/typing
Fix typing errors
2 parents fc4aaf0 + 201cfaf commit 42435b6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@ test = [
5757
typing = [
5858
"foamlib[test]",
5959
"mypy>=1,<2",
60+
"scipy-stubs; python_version>='3.10'",
6061
]
6162
docs = [
6263
"ruff",

tests/test_example.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
import numpy as np
44
import pytest
55
from foamlib import FoamCase
6-
from scipy.special import erfc # type: ignore [import-untyped]
6+
from scipy.special import erfc
77

88

99
def test_example(tmp_path: Path) -> None:
@@ -108,7 +108,7 @@ def test_example(tmp_path: Path) -> None:
108108

109109
with case[0]["U"] as f:
110110
f.dimensions = f.DimensionSet(length=1, time=-1)
111-
f.internal_field = [1, 0, 0]
111+
f.internal_field = [1, 0, 0] # type: ignore [assignment]
112112
f.boundary_field = { # type: ignore [assignment]
113113
"inletUp": {"type": "fixedValue", "value": [1, 0, 0]},
114114
"inletDown": {"type": "fixedValue", "value": [1, 0, 0]},

0 commit comments

Comments
 (0)