Skip to content

Commit

Permalink
MNT: revert pyupgrade for preconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
klauer committed Mar 8, 2023
1 parent 47abeb2 commit 5299d88
Showing 1 changed file with 15 additions and 15 deletions.
30 changes: 15 additions & 15 deletions pcdsdaq/daq/lcls2.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from collections.abc import Iterator
from functools import cache
from numbers import Real
from typing import Any, get_type_hints
from typing import Any, Union, get_type_hints

from bluesky import RunEngine
from ophyd.device import Component as Cpt
Expand Down Expand Up @@ -1316,20 +1316,20 @@ def _enforce_config(self, name, value):

def preconfig(
self,
events: int | None | Sentinel = CONFIG_VAL,
duration: Real | None | Sentinel = CONFIG_VAL,
record: bool | TernaryBool | None | Sentinel = CONFIG_VAL,
controls: ControlsArg | None | Sentinel = CONFIG_VAL,
motors: ControlsArg | None | Sentinel = CONFIG_VAL,
begin_timeout: Real | None | Sentinel = CONFIG_VAL,
begin_sleep: Real | None | Sentinel = CONFIG_VAL,
begin_throttle: Real | None | Sentinel = CONFIG_VAL,
group_mask: int | None | Sentinel = CONFIG_VAL,
detname: str | None | Sentinel = CONFIG_VAL,
scantype: str | None | Sentinel = CONFIG_VAL,
serial_number: str | None | Sentinel = CONFIG_VAL,
alg_name: str | None | Sentinel = CONFIG_VAL,
alg_version: list[int] | None | Sentinel = CONFIG_VAL,
events: Union[int, None, Sentinel] = CONFIG_VAL,
duration: Union[Real, None, Sentinel] = CONFIG_VAL,
record: Union[bool, TernaryBool, None, Sentinel] = CONFIG_VAL,
controls: Union[ControlsArg, None, Sentinel] = CONFIG_VAL,
motors: Union[ControlsArg, None, Sentinel] = CONFIG_VAL,
begin_timeout: Union[Real, None, Sentinel] = CONFIG_VAL,
begin_sleep: Union[Real, None, Sentinel] = CONFIG_VAL,
begin_throttle: Union[Real, None, Sentinel] = CONFIG_VAL,
group_mask: Union[int, None, Sentinel] = CONFIG_VAL,
detname: Union[str, None, Sentinel] = CONFIG_VAL,
scantype: Union[str, None, Sentinel] = CONFIG_VAL,
serial_number: Union[str, None, Sentinel] = CONFIG_VAL,
alg_name: Union[str, None, Sentinel] = CONFIG_VAL,
alg_version: Union[list[int], None, Sentinel] = CONFIG_VAL,
show_queued_cfg: bool = True,
) -> None:
"""
Expand Down

0 comments on commit 5299d88

Please sign in to comment.