New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove deprecated typing
imports
#6720
Comments
erlingstaff
changed the title
Removed deprecated
Remove deprecated Apr 23, 2024
typing
importstyping
imports
Good catch on Ruff having this functionality - I'm configuring Ruff to include a few more features, I'll assign this issue to myself to look into adding this too |
rdimaio
added a commit
to rdimaio/rucio
that referenced
this issue
Apr 24, 2024
rdimaio
added a commit
to rdimaio/rucio
that referenced
this issue
Apr 24, 2024
This was referenced Apr 24, 2024
bari12
pushed a commit
that referenced
this issue
Apr 26, 2024
bari12
pushed a commit
that referenced
this issue
Apr 26, 2024
bari12
pushed a commit
that referenced
this issue
Apr 26, 2024
bari12
pushed a commit
that referenced
this issue
Apr 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
Several imports from
typing
are deprecated, and should be either:typing.Dict
->dict
from typing import Callable
->from collections.abc import Callable
The deprecations are relevant in Python versions ranging from 3.8 -> 3.12. This issue focuses on the imports deprecated in 3.8 or 3.9, as 3.9 is the minimum Python needed to run Rucio (as outlined in
setup_rucio.py
). When Rucio is updated, there might be new deprecations.The following grep command finds all (i think) instances of deprecated imports:
This currently returns
More info:
https://docs.python.org/3/library/typing.html#deprecated-aliases
https://peps.python.org/pep-0585/#implementation
Motivation
Change
typing
, either manually or automatically using e.g. the aforementioned grep commandThe text was updated successfully, but these errors were encountered: