mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import optparse
|
||||
from builtins import list as _list # alias to avoid name clashes with fields named list
|
||||
from collections.abc import Iterable
|
||||
from typing import Any
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
@@ -7,8 +8,6 @@ from docutils import ApplicationError
|
||||
from docutils.io import FileOutput
|
||||
from docutils.nodes import document
|
||||
|
||||
_list = list
|
||||
|
||||
class DependencyList:
|
||||
list: _list[str]
|
||||
file: FileOutput | None
|
||||
|
||||
Reference in New Issue
Block a user