Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Complete type annotations #399

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
fix: import notimlementedtype from linopy.types
  • Loading branch information
FabianHofmann committed Dec 30, 2024
commit 2c9a285c9082fc97ebe90f62abc0d6fdf163720d
2 changes: 1 addition & 1 deletion linopy/monkey_patch_xarray.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
from __future__ import annotations

from functools import partialmethod, update_wrapper
from types import NotImplementedType
from typing import Any, Callable

from xarray import DataArray

from linopy import expressions, variables
from linopy.types import NotImplementedType


def monkey_patch(cls: type[DataArray], pass_unpatched_method: bool = False) -> Callable:
Expand Down
Loading