Summary
Enable Ruff rule UP035 for the project.
Rationale
Rule UP035 reports imports from typing that should use collections.abc. For example, Iterator should be imported as from collections.abc import Iterator on the supported Python versions.
Affected areas
- Ruff configuration in the repository configuration files
- Existing Python source files that violate
UP035
- CI and local lint validation
Acceptance criteria
- Ruff enables
UP035.
- The codebase has no
UP035 violations.
- The lint command passes with the updated configuration.
Backlinks
Summary
Enable Ruff rule
UP035for the project.Rationale
Rule
UP035reports imports fromtypingthat should usecollections.abc. For example,Iteratorshould be imported asfrom collections.abc import Iteratoron the supported Python versions.Affected areas
UP035Acceptance criteria
UP035.UP035violations.Backlinks