mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-06 20:24:30 +08:00
Added missing type annotations in various stdlib stubs. (#4402)
Co-authored-by: Eric Traut <erictr@microsoft.com>
This commit is contained in:
@@ -100,7 +100,7 @@ class HTMLDoc(Doc):
|
||||
marginalia: Optional[str] = ...,
|
||||
gap: str = ...,
|
||||
) -> str: ...
|
||||
def bigsection(self, title: str, *args) -> str: ...
|
||||
def bigsection(self, title: str, *args: Any) -> str: ...
|
||||
def preformat(self, text: str) -> str: ...
|
||||
def multicolumn(self, list: List[Any], format: Callable[[Any], str], cols: int = ...) -> str: ...
|
||||
def grey(self, text: str) -> str: ...
|
||||
@@ -119,7 +119,7 @@ class HTMLDoc(Doc):
|
||||
def formattree(
|
||||
self, tree: List[Union[Tuple[type, Tuple[type, ...]], List[Any]]], modname: str, parent: Optional[type] = ...
|
||||
) -> str: ...
|
||||
def docmodule(self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., *ignored) -> str: ...
|
||||
def docmodule(self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., *ignored: Any) -> str: ...
|
||||
def docclass(
|
||||
self,
|
||||
object: object,
|
||||
@@ -127,7 +127,7 @@ class HTMLDoc(Doc):
|
||||
mod: Optional[str] = ...,
|
||||
funcs: Mapping[str, str] = ...,
|
||||
classes: Mapping[str, str] = ...,
|
||||
*ignored,
|
||||
*ignored: Any,
|
||||
) -> str: ...
|
||||
def formatvalue(self, object: object) -> str: ...
|
||||
def docroutine(
|
||||
@@ -139,14 +139,14 @@ class HTMLDoc(Doc):
|
||||
classes: Mapping[str, str] = ...,
|
||||
methods: Mapping[str, str] = ...,
|
||||
cl: Optional[type] = ...,
|
||||
*ignored,
|
||||
*ignored: Any,
|
||||
) -> str: ...
|
||||
def docproperty(
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored: Any
|
||||
) -> str: ...
|
||||
def docother(self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., *ignored) -> str: ...
|
||||
def docother(self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., *ignored: Any) -> str: ...
|
||||
def docdata(
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., cl: Optional[Any] = ..., *ignored
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., cl: Optional[Any] = ..., *ignored: Any
|
||||
) -> str: ...
|
||||
def index(self, dir: str, shadowed: Optional[MutableMapping[str, bool]] = ...) -> str: ...
|
||||
def filelink(self, url: str, path: str) -> str: ...
|
||||
@@ -175,17 +175,17 @@ class TextDoc(Doc):
|
||||
parent: Optional[type] = ...,
|
||||
prefix: str = ...,
|
||||
) -> str: ...
|
||||
def docmodule(self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., *ignored) -> str: ...
|
||||
def docclass(self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., *ignored) -> str: ...
|
||||
def docmodule(self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., *ignored: Any) -> str: ...
|
||||
def docclass(self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., *ignored: Any) -> str: ...
|
||||
def formatvalue(self, object: object) -> str: ...
|
||||
def docroutine(
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored: Any
|
||||
) -> str: ...
|
||||
def docproperty(
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., cl: Optional[Any] = ..., *ignored
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[Any] = ..., cl: Optional[Any] = ..., *ignored: Any
|
||||
) -> str: ...
|
||||
def docdata(
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored
|
||||
self, object: object, name: Optional[str] = ..., mod: Optional[str] = ..., cl: Optional[Any] = ..., *ignored: Any
|
||||
) -> str: ...
|
||||
def docother(
|
||||
self,
|
||||
@@ -195,7 +195,7 @@ class TextDoc(Doc):
|
||||
parent: Optional[str] = ...,
|
||||
maxlen: Optional[int] = ...,
|
||||
doc: Optional[Any] = ...,
|
||||
*ignored,
|
||||
*ignored: Any,
|
||||
) -> str: ...
|
||||
|
||||
def pager(text: str) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user