To receive notifications about scheduled maintenance, please subscribe to the mailing-list gitlab-operations@sympa.ethz.ch. You can subscribe to the mailing-list at https://sympa.ethz.ch

Commit 723c5fa7 authored by Henrik Menne's avatar Henrik Menne
Browse files

fix typing and style

parent e39dfd19
Pipeline #53131 passed with stages
in 2 minutes and 59 seconds
......@@ -18,7 +18,7 @@ from collections.abc import Sequence
from typing import Union, Tuple, Optional, List
from aenum import Enum, IntEnum
from typing_extensions import Literal # in `typing` only since Py 3.8
# from typing_extensions import Literal # in `typing` only since Py 3.8
from .._dev import labjack
from ..comm import LJMCommunication
......@@ -125,7 +125,7 @@ class LabJack(SingleCommDevice):
ONE_TENTH = 0.1
ONE_HUNDREDTH = 0.01
def get_ain(self, *channels: int) -> Union[float, Tuple[float, ...],]:
def get_ain(self, *channels: int) -> Union[float, Tuple[float, ...]]:
"""
Read currently measured value (voltage, resistance, ...) from one or more
of analog inputs.
......@@ -242,7 +242,9 @@ class LabJack(SingleCommDevice):
cjc_type: Union[str, CjcType] = (
CjcType.internal # type: ignore
),
vrange: AInRange = AInRange.ONE_HUNDREDTH,
vrange: AInRange = (
AInRange.ONE_HUNDREDTH # type: ignore
),
resolution: int = 10,
unit: Union[str, TemperatureUnit] = (
TemperatureUnit.K # type: ignore
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment