Skip to content

Commit

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

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.5.1 → v0.5.2](astral-sh/ruff-pre-commit@v0.5.1...v0.5.2)

* Apply ruff fixes

---------

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 Jul 15, 2024
1 parent 8ec91dd commit 5656a57
Show file tree
Hide file tree
Showing 4 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 @@ -94,6 +94,6 @@ repos:
- id: check-docstring-first

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.1
rev: v0.5.2
hooks:
- id: ruff
2 changes: 1 addition & 1 deletion claripy/ast/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -947,7 +947,7 @@ def structurally_match(self: T, o: T) -> bool:

for arg_a, arg_b in zip(self.args, o.args):
if not isinstance(arg_a, Base):
if type(arg_a) != type(arg_b):
if type(arg_a) != type(arg_b): # noqa: E721
return False
# They are not ASTs
if arg_a != arg_b:
Expand Down
2 changes: 1 addition & 1 deletion claripy/backends/backend_vsa.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ def simplify(self, e):
raise BackendError("nope")

def _identical(self, a, b):
if type(a) != type(b):
if type(a) != type(b): # noqa: E721
return False
return a.identical(b)

Expand Down
2 changes: 1 addition & 1 deletion tests/test_backend_smt_congruency.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def solution_ast(var, val):
if type(var) == claripy.ast.strings.String:
if isinstance(var, claripy.ast.strings.String):
return claripy.StringV(val)
return (var == val).args[1]

Expand Down

0 comments on commit 5656a57

Please sign in to comment.