diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 65b54fd8f..3b1b0580e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,12 +4,12 @@ ci: repos: - repo: https://github.com/psf/black - rev: 23.7.0 + rev: 23.9.1 hooks: - id: black - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.0.287 + rev: v0.0.292 hooks: - id: ruff args: [--fix, --exit-non-zero-on-fix] diff --git a/src/attr/_make.py b/src/attr/_make.py index eb7a1fecc..fd1063677 100644 --- a/src/attr/_make.py +++ b/src/attr/_make.py @@ -495,7 +495,7 @@ def _transform_attrs( anns = _get_annotations(cls) if these is not None: - ca_list = [(name, ca) for name, ca in these.items()] + ca_list = list(these.items()) elif auto_attribs is True: ca_names = { name