We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 161b4c0 + 061c875 commit 9ff2ae5Copy full SHA for 9ff2ae5
pyaml/tuning_tools/orbit.py
@@ -1,6 +1,12 @@
1
import logging
2
from pathlib import Path
3
-from typing import TYPE_CHECKING, Literal, Optional, Self
+from typing import TYPE_CHECKING, Literal, Optional
4
+
5
+try:
6
+ from typing import Self # Python 3.11+
7
+except ImportError:
8
+ from typing_extensions import Self # Python 3.10 and earlier
9
10
11
from pydantic import BaseModel, ConfigDict
12
0 commit comments