Skip to content

Commit 3f9a015

Browse files
committed
drop NumPy 1.x support
Signed-off-by: Martijn Govers <[email protected]>
1 parent 49c3f36 commit 3f9a015

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ classifiers=[
2828
]
2929
requires-python = ">=3.11"
3030
dependencies = [
31-
"numpy>=1.20",
31+
"numpy>=2.0",
3232
"openpyxl",
3333
"pandas",
3434
"power_grid_model>=1.8",

tests/utils.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
import numpy as np
1313
import pandas as pd
14-
from packaging import version
1514
from pandas.core.generic import NDFrame
1615

1716

@@ -74,9 +73,6 @@ class MockFn:
7473

7574
__array_struct__ = np.array([]).__array_struct__
7675

77-
if version.Version(metadata.version("numpy")) < version.Version("2"):
78-
__array_prepare__ = np.array([]).__array_prepare__ # type: ignore[attr-defined]
79-
8076
def __init__(self, fn: str, *args, **kwargs):
8177
self.fn = fn
8278
self.args = list(args)

0 commit comments

Comments
 (0)