Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit fe0d857

Browse files
[DEM-943] Decorated property not supported (python/mypy#1362).
1 parent bb058b9 commit fe0d857

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

src/qtt/measurements/acquisition/interfaces/acquisition_scope_interface.py

+20-20
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@
99
class AcquisitionScopeInterface(AcquisitionInterface, ABC):
1010
""" An interface which contains the functionality for a acquisition device as a oscilloscope."""
1111

12-
@property
12+
@property # type: ignore
1313
@abstractmethod
1414
def input_range(self) -> Tuple[float, float]:
1515
""" The input range of the channels."""
1616

17-
@input_range.setter
17+
@input_range.setter # type: ignore
1818
@abstractmethod
1919
def input_range(self, value: Tuple[float, float]) -> None:
2020
""" Gets the amplitude input range of the channels.
@@ -23,12 +23,12 @@ def input_range(self, value: Tuple[float, float]) -> None:
2323
value: The input range amplitude in Volts.
2424
"""
2525

26-
@property
26+
@property # type: ignore
2727
@abstractmethod
2828
def sample_rate(self) -> float:
2929
""" The sample rate of the acquisition device."""
3030

31-
@sample_rate.setter
31+
@sample_rate.setter # type: ignore
3232
@abstractmethod
3333
def sample_rate(self, value: float) -> None:
3434
""" Sets the sample rate of the acquisition device.
@@ -37,12 +37,12 @@ def sample_rate(self, value: float) -> None:
3737
value: The sample rate in samples per second.
3838
"""
3939

40-
@property
40+
@property # type: ignore
4141
@abstractmethod
4242
def period(self) -> float:
4343
""" The measuring period of the acquisition."""
4444

45-
@period.setter
45+
@period.setter # type: ignore
4646
@abstractmethod
4747
def period(self, value: float) -> None:
4848
""" Sets the measuring period of the acquisition.
@@ -51,12 +51,12 @@ def period(self, value: float) -> None:
5151
value: The measuring period in seconds.
5252
"""
5353

54-
@property
54+
@property # type: ignore
5555
@abstractmethod
5656
def number_of_samples(self) -> int:
5757
""" The number of samples to take during a acquisition."""
5858

59-
@number_of_samples.setter
59+
@number_of_samples.setter # type: ignore
6060
@abstractmethod
6161
def number_of_samples(self, value: int) -> None:
6262
""" Sets the sample count to take during a acquisition.
@@ -65,12 +65,12 @@ def number_of_samples(self, value: int) -> None:
6565
value: The number of samples.
6666
"""
6767

68-
@property
68+
@property # type: ignore
6969
@abstractmethod
7070
def trigger_enabled(self) -> bool:
7171
""" The setter sets the external triggering on or off. The getter returns the current trigger value."""
7272

73-
@trigger_enabled.setter
73+
@trigger_enabled.setter # type: ignore
7474
@abstractmethod
7575
def trigger_enabled(self, value: bool) -> None:
7676
""" Turns the external triggering on or off.
@@ -79,12 +79,12 @@ def trigger_enabled(self, value: bool) -> None:
7979
value: The trigger on/off value.
8080
"""
8181

82-
@property
82+
@property # type: ignore
8383
@abstractmethod
8484
def trigger_channel(self) -> str:
8585
""" The input signal to trigger the acquisition on."""
8686

87-
@trigger_channel.setter
87+
@trigger_channel.setter # type: ignore
8888
@abstractmethod
8989
def trigger_channel(self, channel: str) -> None:
9090
""" Sets the external triggering channel.
@@ -93,12 +93,12 @@ def trigger_channel(self, channel: str) -> None:
9393
channel: The trigger channel value.
9494
"""
9595

96-
@property
96+
@property # type: ignore
9797
@abstractmethod
9898
def trigger_level(self) -> float:
9999
""" The trigger-level of the trigger in Volts."""
100100

101-
@trigger_level.setter
101+
@trigger_level.setter # type: ignore
102102
@abstractmethod
103103
def trigger_level(self, level: float) -> None:
104104
""" Sets the external triggering level.
@@ -107,12 +107,12 @@ def trigger_level(self, level: float) -> None:
107107
level: The external trigger level in Volts.
108108
"""
109109

110-
@property
110+
@property # type: ignore
111111
@abstractmethod
112112
def trigger_slope(self) -> str:
113113
""" The edge of the trigger signal to trigger on."""
114114

115-
@trigger_slope.setter
115+
@trigger_slope.setter # type: ignore
116116
@abstractmethod
117117
def trigger_slope(self, slope: str) -> None:
118118
""" Sets the external triggering slope.
@@ -121,12 +121,12 @@ def trigger_slope(self, slope: str) -> None:
121121
slope: The external trigger slope.
122122
"""
123123

124-
@property
124+
@property # type: ignore
125125
@abstractmethod
126126
def trigger_delay(self) -> float:
127127
""" The delay between getting a trigger and acquiring in seconds."""
128128

129-
@trigger_delay.setter
129+
@trigger_delay.setter # type: ignore
130130
@abstractmethod
131131
def trigger_delay(self, delay: float) -> None:
132132
""" Sets the delay in seconds between the external trigger and acquisition.
@@ -135,12 +135,12 @@ def trigger_delay(self, delay: float) -> None:
135135
delay: The scope trigger delay in seconds.
136136
"""
137137

138-
@property
138+
@property # type: ignore
139139
@abstractmethod
140140
def enabled_channels(self) -> Tuple[int, ...]:
141141
""" Reports the enabled input channels."""
142142

143-
@enabled_channels.setter
143+
@enabled_channels.setter # type: ignore
144144
@abstractmethod
145145
def enabled_channels(self, value: Tuple[int, ...]):
146146
""" Sets the given channels to enabled and turns off all others.

0 commit comments

Comments
 (0)