We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 531109a commit 57664cfCopy full SHA for 57664cf
libsemigroups_pybind11/transf.py
@@ -15,7 +15,7 @@
15
16
import abc
17
18
-from typing import Any as _Any, List
+from typing import Any as _Any, List, Union
19
from typing_extensions import Self
20
21
from _libsemigroups_pybind11 import ( # pylint: disable=no-name-in-module
@@ -84,7 +84,7 @@ def _cxx_type_change_required(self: Self, n: int) -> bool:
84
assert n <= 2**32
85
return n > self.py_template_params[0]
86
87
- def __getitem__(self: Self, i: int) -> int | _Undefined:
+ def __getitem__(self: Self, i: int) -> Union[int, _Undefined]:
88
return _to_cxx(self)[i]
89
90
def __hash__(self: Self) -> int:
0 commit comments