Skip to content

Commit 0795d71

Browse files
committed
Don't import Self in Python < 3.11
1 parent b47698a commit 0795d71

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/flint/typing.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,14 @@
1010
Iterator,
1111
Iterable,
1212
Any,
13-
Self,
1413
Mapping,
1514
Sequence,
1615
overload,
1716
)
1817

18+
if TYPE_CHECKING:
19+
from typing import Self
20+
1921
from .flint_base.flint_base import (
2022
flint_elem,
2123
flint_scalar,

0 commit comments

Comments
 (0)