mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 04:54:47 +08:00
Use TypeAlias for type aliases where possible, part II (#7667)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
from _typeshed import SupportsWrite
|
||||
from abc import abstractmethod
|
||||
from builtins import list as _list # "list" conflicts with method name
|
||||
from collections.abc import Callable, Container, Mapping, MutableMapping
|
||||
from reprlib import Repr
|
||||
from types import MethodType, ModuleType, TracebackType
|
||||
@@ -197,8 +198,6 @@ def doc(thing: str | object, title: str = ..., forceload: bool = ..., output: Su
|
||||
def writedoc(thing: str | object, forceload: bool = ...) -> None: ...
|
||||
def writedocs(dir: str, pkgpath: str = ..., done: Any | None = ...) -> None: ...
|
||||
|
||||
_list = list # "list" conflicts with method name
|
||||
|
||||
class Helper:
|
||||
keywords: dict[str, str | tuple[str, str]]
|
||||
symbols: dict[str, str]
|
||||
|
||||
Reference in New Issue
Block a user