Skip to content

Commit e7392fb

Browse files
committed
fixing Self
1 parent 503f91d commit e7392fb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ir_amplitude_detuning/detuning/measurements.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
import logging
1111
from dataclasses import dataclass
12-
from typing import TYPE_CHECKING, Self
12+
from typing import TYPE_CHECKING
1313

1414
import numpy as np
1515

@@ -18,6 +18,11 @@
1818
if TYPE_CHECKING:
1919
from collections.abc import Iterator, Sequence
2020

21+
try:
22+
from typing import Self # py 3.11+
23+
except ImportError:
24+
from typing_extensions import Self # py 3.10
25+
2126
LOG = logging.getLogger(__name__)
2227

2328

0 commit comments

Comments
 (0)