Skip to content
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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Misc] Aliases in typing are deprecated since py 3.9 #7400

Open
Skeleton003 opened this issue May 11, 2024 · 1 comment
Open

[Misc] Aliases in typing are deprecated since py 3.9 #7400

Skeleton003 opened this issue May 11, 2024 · 1 comment
Labels
Work Item Work items tracked in project tracker

Comments

@Skeleton003
Copy link
Collaborator

馃敤Work Item

IMPORTANT:

  • This template is only for dev team to track project progress. For feature request or bug report, please use the corresponding issue templates.
  • DO NOT create a new work item if the purpose is to fix an existing issue or feature request. We will directly use the issue in the project tracker.

Project tracker: https://github.com/orgs/dmlc/projects/2

Description

According to https://docs.python.org/3/library/typing.html#deprecated-aliases , most of the aliases in typing are deprecated since python version 3.9. It is better to replace them with their alternatives.
However, given that many users are still using python<=3.8, maybe now is not the right time for a radical change. This issue is created to track this requirement.

Depending work items or issues

@Skeleton003 Skeleton003 added the Work Item Work items tracked in project tracker label May 11, 2024
@Skeleton003
Copy link
Collaborator Author

According to https://www.dgl.ai/pages/start.html, current (2024/05/11) supported Python versions are 3.8, 3.9, 3.10, 3.11, 3.12. If one day python3.8 is no longer supported, we need to remove all imports of typing and replace them with their alternatives.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Work Item Work items tracked in project tracker
Projects
None yet
Development

No branches or pull requests

1 participant