Is this a duplicate?
Area
General cuda-python
Is your feature request related to a problem? Please describe.
As of Python 3.9, it is no longer necessary to do this kind of thing:
from typing import List
def foo() -> List[int]:
return [1, 2, 3]
You can instead do:
def foo() -> list[int]:
return [1, 2, 3]
Describe the solution you'd like
We should remove these uses of typing.Dict, typing.List, typing.Tuple and typing.Set and replace with built-in types where possible.
This might be a good job for Copilot.
Describe alternatives you've considered
No response
Additional context
No response
Is this a duplicate?
Area
General cuda-python
Is your feature request related to a problem? Please describe.
As of Python 3.9, it is no longer necessary to do this kind of thing:
You can instead do:
Describe the solution you'd like
We should remove these uses of
typing.Dict,typing.List,typing.Tupleandtyping.Setand replace with built-in types where possible.This might be a good job for Copilot.
Describe alternatives you've considered
No response
Additional context
No response