Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ classifiers=[
]
requires-python = ">=3.11"
dependencies = [
"numpy>=1.20",
"numpy>=2.0",
"openpyxl",
"pandas",
"power_grid_model>=1.8",
Expand Down
5 changes: 0 additions & 5 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,12 @@

import sys
from copy import copy, deepcopy
from importlib import metadata
from itertools import chain
from typing import Any, Dict, List, Mapping, MutableMapping, Optional, Tuple
from unittest.mock import MagicMock

import numpy as np
import pandas as pd
from packaging import version
from pandas.core.generic import NDFrame


Expand Down Expand Up @@ -74,9 +72,6 @@ class MockFn:

__array_struct__ = np.array([]).__array_struct__

if version.Version(metadata.version("numpy")) < version.Version("2"):
__array_prepare__ = np.array([]).__array_prepare__ # type: ignore[attr-defined]

def __init__(self, fn: str, *args, **kwargs):
self.fn = fn
self.args = list(args)
Expand Down