mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 13:02:22 +08:00
Replace Any with Incomplete in many places (#9558)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
from markdown.extensions import Extension
|
||||
@@ -21,16 +22,16 @@ class CodeHilite:
|
||||
options: dict[str, Any]
|
||||
def __init__(
|
||||
self,
|
||||
src: Any | None = ...,
|
||||
src: Incomplete | None = ...,
|
||||
*,
|
||||
linenums: Any | None = ...,
|
||||
linenums: Incomplete | None = ...,
|
||||
guess_lang: bool = ...,
|
||||
css_class: str = ...,
|
||||
lang: Any | None = ...,
|
||||
lang: Incomplete | None = ...,
|
||||
style: str = ...,
|
||||
noclasses: bool = ...,
|
||||
tab_length: int = ...,
|
||||
hl_lines: Any | None = ...,
|
||||
hl_lines: Incomplete | None = ...,
|
||||
use_pygments: bool = ...,
|
||||
**options: Any,
|
||||
) -> None: ...
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
from . import util
|
||||
@@ -14,6 +15,6 @@ class InlineProcessor(Treeprocessor):
|
||||
def __init__(self, md) -> None: ...
|
||||
stashed_nodes: Any
|
||||
parent_map: Any
|
||||
def run(self, tree, ancestors: Any | None = ...): ...
|
||||
def run(self, tree, ancestors: Incomplete | None = ...): ...
|
||||
|
||||
class PrettifyTreeprocessor(Treeprocessor): ...
|
||||
|
||||
Reference in New Issue
Block a user