dmlc / dmlc/dgl

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

Open
#7,400 1 comment 1 reaction 0 assignees View on GitHub
Work Item
Dominant language
Python
Stars
14.3k
Forks
3.1k
PR merge metrics
No merged PRs in 30d

Description

## 🔨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

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.