Skip to content

Commit 58a28b5

Browse files
FabianHofmannlkstrppre-commit-ci[bot]
authored
Complete type annotations (#399)
* feat: Add type annotations to test_linear_expression.py * refactor: Add type hints to test_model.py functions * add type annotations to test files * run mypy succesfully * feat: Add type annotations to variables module * complete type annotations, add disallow_untyped_defs to pyproject * fix: import notimlementedtype from linopy.types * reinsert py.typed * Update linopy/constraints.py Co-authored-by: Lukas Trippe <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * adress review comments * move None out of DimsLike and CoordsLike * fix: add pytest fixture * make typealias python3.9 compatible * follow up * follow up * follow up * follow up --------- Co-authored-by: Lukas Trippe <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 6a788ac commit 58a28b5

37 files changed

+1559
-1145
lines changed

linopy/__init__.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
# Note: For intercepting multiplications between xarray dataarrays, Variables and Expressions
1313
# we need to extend their __mul__ functions with a quick special case
1414
import linopy.monkey_patch_xarray # noqa: F401
15-
from linopy import model, remote, types
1615
from linopy.config import options
1716
from linopy.constants import EQUAL, GREATER_EQUAL, LESS_EQUAL
1817
from linopy.constraints import Constraint
@@ -35,9 +34,6 @@
3534
"Variable",
3635
"available_solvers",
3736
"merge",
38-
"model",
3937
"options",
4038
"read_netcdf",
41-
"remote",
42-
"types",
4339
)

0 commit comments

Comments
 (0)