dgl icon indicating copy to clipboard operation
dgl copied to clipboard

[Misc] Aliases in `typing` are deprecated since py 3.9

Open Skeleton003 opened this issue 1 year ago • 1 comments

🔨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 avatar May 11 '24 06:05 Skeleton003

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.

Skeleton003 avatar May 11 '24 06:05 Skeleton003