Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions pyaml/bpm/bpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
from ..lattice.abstract_impl import RBpmArray, RWBpmOffsetArray, RWBpmTiltScalar
from ..bpm.bpm_model import BPMModel
from ..common.exception import PyAMLException

from typing import Self
try:
from typing import Self # Python 3.11+
except ImportError:
from typing_extensions import Self # Python 3.10 and earlier

PYAMLCLASS = "BPM"

Expand Down
6 changes: 4 additions & 2 deletions pyaml/diagnostics/tune_monitor.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
from ..common.element import Element, ElementConfigModel
from ..common.abstract import ReadFloatArray
from ..control.deviceaccess import DeviceAccess

from typing import Self
try:
from typing import Self # Python 3.11+
except ImportError:
from typing_extensions import Self # Python 3.10 and earlier
from pydantic import ConfigDict

PYAMLCLASS = "BetatronTuneMonitor"
Expand Down
Loading