Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#371)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/asottile/pyupgrade: v2.38.0 → v2.38.2](asottile/pyupgrade@v2.38.0...v2.38.2)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] committed Sep 30, 2022
1 parent 4ec761d commit bbed79c
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ repos:
hooks:
- id: black
- repo: https://github.com/asottile/pyupgrade
rev: v2.38.0
rev: v2.38.2
hooks:
- id: pyupgrade
args: [ --py36-plus ]
2 changes: 1 addition & 1 deletion src/instruments/minghe/mhs5200a.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class Channel(FunctionGenerator.Channel):

def __init__(self, mhs, idx):
self._mhs = mhs
super(MHS5200.Channel, self).__init__(parent=mhs, name=idx)
super().__init__(parent=mhs, name=idx)
# Use zero-based indexing for the external API, but one-based
# for talking to the instrument.
self._idx = idx + 1
Expand Down
4 changes: 1 addition & 3 deletions src/instruments/rigol/rigolds1000.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,7 @@ def __init__(self, parent, idx):
self._idx = idx + 1 # Rigols are 1-based.

# Initialize as a data source with name CHAN{}.
super(RigolDS1000Series.Channel, self).__init__(
self._parent, f"CHAN{self._idx}"
)
super().__init__(self._parent, f"CHAN{self._idx}")

def sendcmd(self, cmd):
"""
Expand Down
4 changes: 2 additions & 2 deletions src/instruments/tektronix/tekdpo70000.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def __init__(self, parent, idx):
self._idx = idx + 1 # 1-based.

# Initialize as a data source with name MATH{}.
super(TekDPO70000.Math, self).__init__(parent, f"MATH{self._idx}")
super().__init__(parent, f"MATH{self._idx}")

def sendcmd(self, cmd):
"""
Expand Down Expand Up @@ -512,7 +512,7 @@ def __init__(self, parent, idx):
self._idx = idx + 1 # 1-based.

# Initialize as a data source with name CH{}.
super(TekDPO70000.Channel, self).__init__(self._parent, f"CH{self._idx}")
super().__init__(self._parent, f"CH{self._idx}")

def sendcmd(self, cmd):
"""
Expand Down
4 changes: 2 additions & 2 deletions src/instruments/teledyne/maui.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ def __init__(self, parent, idx):
self._idx = idx + 1 # 1-based

# Initialize as a data source with name C{}.
super(MAUI.Channel, self).__init__(self._parent, f"C{self._idx}")
super().__init__(self._parent, f"C{self._idx}")

# ENUMS #

Expand Down Expand Up @@ -440,7 +440,7 @@ def __init__(self, parent, idx):
self._idx = idx + 1 # 1-based

# Initialize as a data source with name C{}.
super(MAUI.Math, self).__init__(self._parent, f"F{self._idx}")
super().__init__(self._parent, f"F{self._idx}")

# CLASSES #

Expand Down

0 comments on commit bbed79c

Please sign in to comment.