Skip to content

Commit 6f72f72

Browse files
committed
refactor: remove unnecessary pylint disable comments for clarity
1 parent 940289f commit 6f72f72

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/tm_devices/drivers/afgs/afg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def generate_function( # noqa: PLR0913
135135
if self.query(f"SOURCE{burst_channel}:BURST:STATE?") == "1":
136136
burst_state = True
137137
if (
138-
self.total_channels > 1 # pylint: disable=comparison-with-callable
138+
self.total_channels > 1
139139
and function.value != SignalGeneratorFunctionsAFG.DC.value
140140
and not burst_state
141141
):

src/tm_devices/drivers/device.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def __str__(self) -> str:
105105
def name_and_alias(self) -> str:
106106
"""Return string for easy ID of device in console output prints."""
107107
retval = self.name
108-
if self.alias: # pylint: disable=using-constant-test
108+
if self.alias:
109109
retval += f' "{self.alias}"'
110110
return retval.replace(" NotImplemented", "")
111111

src/tm_devices/drivers/source_measure_units/smu26xx/smu26xx.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class SMU26xx(CommonTSPErrorCheckMixin, TSPControl, SourceMeasureUnit, ABC):
4343
@property
4444
def all_channel_names_list(self) -> Tuple[str, ...]:
4545
"""Return a tuple containing all the channel names."""
46-
return tuple(string.ascii_lowercase[: self.total_channels]) # pylint: disable=invalid-slice-index
46+
return tuple(string.ascii_lowercase[: self.total_channels])
4747

4848
@cached_property
4949
def total_channels(self) -> int:

0 commit comments

Comments
 (0)