Skip to content

Commit 4960c41

Browse files
authored
Update (#38)
1 parent 2f13e66 commit 4960c41

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2013
-1639
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: mixed-line-ending
1111
- id: check-case-conflict
1212
- repo: https://github.com/astral-sh/ruff-pre-commit
13-
rev: v0.14.9 # must match uv.lock
13+
rev: v0.14.14 # must match uv.lock
1414
hooks:
1515
- id: ruff-check
1616
- id: ruff-format

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,10 @@ tests = [
2525
"types-networkx>=3.4.2",
2626
]
2727
dev = [
28-
"ruff>=0.9.2",
28+
"ruff>=0.14.14",
2929
"pytest>=8.0",
3030
"rich-argparse>=1.6.0",
31-
"mypy>=1.14.1",
31+
"mypy>=1.19.1",
3232
"pyright>=1.1.392",
3333
{ include-group = "tests" },
3434
]

stubs/pandapower-stubs/auxiliary.pyi

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import logging
22
from collections.abc import Iterable, Mapping, MutableMapping
33
from typing import Any, Final, Literal, NoReturn, Self, overload
4-
from typing_extensions import deprecated
54

65
import geopandas as gpd
76
import numpy as np
@@ -124,8 +123,6 @@ class pandapowerNet(ADict[pd.DataFrame]):
124123
res_protection: pd.DataFrame # Optional?
125124
@classmethod
126125
def create_dataframes(cls, data): ...
127-
@deprecated("Use copy.deepcopy(net) instead of net.deepcopy()")
128-
def deepcopy(self) -> Self: ...
129126

130127
class GeoAccessor:
131128
def __init__(self, pandas_obj) -> None: ...

stubs/pandapower-stubs/control/controller/station_control.pyi

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ class BinarySearchControl(Controller):
2020
voltage_ctrl,
2121
name="",
2222
input_inverted=[],
23-
gen_Q_response=[],
2423
bus_idx=None,
2524
tol=0.001,
2625
in_service=True,

stubs/pandapower-stubs/control/util/auxiliary.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,4 @@ def create_trafo_characteristic_object(net: pandapowerNet) -> None: ...
1919
def _create_trafo_characteristics(net: pandapowerNet, trafotable, trafo_index, variable, x_points, y_points) -> None: ...
2020
def create_shunt_characteristic_object(net: pandapowerNet) -> None: ...
2121
def create_q_capability_characteristics_object(net: pandapowerNet) -> None: ...
22+
def get_min_max_q_mvar_from_characteristics_object(net: pandapowerNet, element: str, element_index): ...

stubs/pandapower-stubs/convert_format.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@ from collections.abc import Container
22

33
from pandapower.auxiliary import pandapowerNet
44

5-
def convert_format(net: pandapowerNet, elements_to_deserialize: Container[str] | None = None) -> pandapowerNet: ...
5+
def convert_format(
6+
net: pandapowerNet, elements_to_deserialize: Container[str] | None = None, drop_invalid_geodata: bool = False
7+
) -> pandapowerNet: ...
68
def correct_dtypes(net: pandapowerNet, error: bool) -> None: ...
79
def convert_trafo_pst_logic(net: pandapowerNet) -> None: ...

0 commit comments

Comments
 (0)