Skip to content

Commit

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

updates:
- [github.com/asottile/pyupgrade: v3.9.0 → v3.10.1](asottile/pyupgrade@v3.9.0...v3.10.1)
- [github.com/pycqa/flake8: 6.0.0 → 6.1.0](PyCQA/flake8@6.0.0...6.1.0)

* fix pre-commit issue, replace type equality with isinstance

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Jovan Mitrevski <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and jmitrevs authored Aug 10, 2023
1 parent 49a3a90 commit c6174c3
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 @@ -30,7 +30,7 @@ repos:
args: ["--profile", "black", --line-length=125]

- repo: https://github.com/asottile/pyupgrade
rev: v3.9.0
rev: v3.10.1
hooks:
- id: pyupgrade
args: ["--py36-plus"]
Expand All @@ -41,7 +41,7 @@ repos:
- id: setup-cfg-fmt

- repo: https://github.com/pycqa/flake8
rev: 6.0.0
rev: 6.1.0
hooks:
- id: flake8
exclude: docs/conf.py
Expand Down
2 changes: 1 addition & 1 deletion hls4ml/backends/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def _default_params(self, node):
params = {}
params.update(node.attributes)
# Convert all bool attributes to lowercase strings
params = {key: str(val).lower() if type(val) == bool else val for key, val in params.items()}
params = {key: str(val).lower() if isinstance(val, bool) else val for key, val in params.items()}

return params

Expand Down

0 comments on commit c6174c3

Please sign in to comment.