Skip to content

Commit

Permalink
Merge pull request #2068 from ERGO-Code/fix-2025
Browse files Browse the repository at this point in the history
Fix 2025
  • Loading branch information
jajhall authored Dec 4, 2024
2 parents f3967c6 + b3083d5 commit 85b2b47
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/highspy/highs.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
)

# backwards typing support information for HighspyArray
if sys.version_info >= (3, 9):
np_version = tuple(map(int, np.__version__.split('.')))
if sys.version_info >= (3, 9) and np_version >= (1,22,0):
ndarray_object_type = np.ndarray[Any, np.dtype[np.object_]]
else:
ndarray_object_type = np.ndarray
Expand Down

0 comments on commit 85b2b47

Please sign in to comment.