Skip to content

Commit

Permalink
Bump pyupgrade from 3.10.1 to 3.13.0 (esphome#5428)
Browse files Browse the repository at this point in the history
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Jesse Hills <[email protected]>
  • Loading branch information
dependabot[bot] and jesserockz authored Oct 19, 2023
1 parent 9a087c0 commit 53572dc
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repos:
- --branch=release
- --branch=beta
- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.13.0
hooks:
- id: pyupgrade
args: [--py39-plus]
4 changes: 2 additions & 2 deletions esphome/components/remote_base/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -964,7 +964,7 @@ async def rc6_action(var, config, args):


def validate_rc_switch_code(value):
if not isinstance(value, (str, str)):
if not isinstance(value, str):
raise cv.Invalid("All RCSwitch codes must be in quotes ('')")
for c in value:
if c not in ("0", "1"):
Expand All @@ -981,7 +981,7 @@ def validate_rc_switch_code(value):


def validate_rc_switch_raw_code(value):
if not isinstance(value, (str, str)):
if not isinstance(value, str):
raise cv.Invalid("All RCSwitch raw codes must be in quotes ('')")
for c in value:
if c not in ("0", "1", "x"):
Expand Down
2 changes: 1 addition & 1 deletion requirements_test.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
pylint==2.17.6
flake8==6.1.0 # also change in .pre-commit-config.yaml when updating
black==23.9.1 # also change in .pre-commit-config.yaml when updating
pyupgrade==3.10.1 # also change in .pre-commit-config.yaml when updating
pyupgrade==3.13.0 # also change in .pre-commit-config.yaml when updating
pre-commit

# Unit tests
Expand Down

0 comments on commit 53572dc

Please sign in to comment.