Skip to content

Commit

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

updates:
- [github.com/abravalheri/validate-pyproject: v0.13 → v0.14](abravalheri/validate-pyproject@v0.13...v0.14)
- [github.com/astral-sh/ruff-pre-commit: v0.0.284 → v0.0.285](astral-sh/ruff-pre-commit@v0.0.284...v0.0.285)

* Fix lint error

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Kevin Phoenix <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and twizmwazin authored Aug 25, 2023
1 parent 47267bf commit 40f151e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ repos:
#

- repo: https://github.com/abravalheri/validate-pyproject
rev: v0.13
rev: v0.14
hooks:
- id: validate-pyproject
fail_fast: true
Expand Down Expand Up @@ -66,7 +66,7 @@ repos:
args: [--py38-plus]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.284
rev: v0.0.285
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
Expand Down
2 changes: 1 addition & 1 deletion pyvex/expr.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def replace_expression(self, replacements):
v = getattr(self, k)
if isinstance(v, IRExpr) and v in replacements:
setattr(self, k, replacements.get(v))
elif type(v) is list:
elif isinstance(v, list):
# Replace the instance in the list
for i, expr_ in enumerate(v):
if isinstance(expr_, IRExpr) and expr_ in replacements:
Expand Down

0 comments on commit 40f151e

Please sign in to comment.