Skip to content

Commit

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

updates:
- [github.com/pre-commit/pre-commit-hooks: v4.4.0 → v4.5.0](pre-commit/pre-commit-hooks@v4.4.0...v4.5.0)
- [github.com/asottile/pyupgrade: v3.14.0 → v3.15.0](asottile/pyupgrade@v3.14.0...v3.15.0)
- [github.com/pre-commit/mirrors-mypy: v1.5.1 → v1.6.0](pre-commit/mirrors-mypy@v1.5.1...v1.6.0)

* [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] authored Oct 17, 2023
1 parent 1def5d7 commit 1a1ee6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ exclude: ^src/auditwheel/_vendor/

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-builtin-literals
- id: check-added-large-files
Expand All @@ -23,7 +23,7 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/asottile/pyupgrade
rev: v3.14.0
rev: v3.15.0
hooks:
- id: pyupgrade
args: ["--py38-plus"]
Expand All @@ -46,7 +46,7 @@ repos:
- id: flake8

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.6.0
hooks:
- id: mypy
exclude: ^tests/integration/.*/.*$
Expand Down
4 changes: 2 additions & 2 deletions src/auditwheel/wheel_abi.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def get_wheel_elfdata(wheel_fn: str):
full_elftree = {}
nonpy_elftree = {}
full_external_refs = {}
versioned_symbols: dict[str, set[str]] = defaultdict(lambda: set())
versioned_symbols: dict[str, set[str]] = defaultdict(set)
uses_ucs2_symbols = False
uses_PyFPE_jbuf = False

Expand Down Expand Up @@ -196,7 +196,7 @@ def get_versioned_symbols(libs):
for path, elf in elf_file_filter(libs.keys()):
# {depname: set(symbol_version)}, e.g.
# {'libc.so.6', set(['GLIBC_2.5','GLIBC_2.12'])}
elf_versioned_symbols = defaultdict(lambda: set())
elf_versioned_symbols = defaultdict(set)
for key, value in elf_find_versioned_symbols(elf):
log.debug("path %s, key %s, value %s", path, key, value)
elf_versioned_symbols[key].add(value)
Expand Down

0 comments on commit 1a1ee6c

Please sign in to comment.