Skip to content

Commit

Permalink
Removed reference to EllipsisType, as it first appears in Python 3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
mathgeekcoder committed Sep 21, 2024
1 parent 536983f commit 09f360c
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/highspy/highs.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
from itertools import product
from threading import Thread, local, RLock, Lock
from typing import Optional, Any, overload, Callable, Sequence, Mapping, Iterable, SupportsIndex, cast
from types import EllipsisType

from ._core import (
ObjSense,
Expand Down Expand Up @@ -1502,7 +1501,7 @@ def __getitem__(
) -> HighspyArray: ...

@overload
def __getitem__(self, key: (None | slice | type[EllipsisType] | SupportsIndex | tuple[None | slice | type[EllipsisType] | SupportsIndex, ...])) -> HighspyArray: ...
def __getitem__(self, key: (None | slice | SupportsIndex | tuple[None | slice | SupportsIndex, ...])) -> HighspyArray: ...

@overload
def __getitem__(self, key: Any) -> HighspyArray: ... # type: ignore
Expand Down

0 comments on commit 09f360c

Please sign in to comment.