mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-02-25 19:17:16 +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
|
||||
|
||||
CODE_INDENT: int
|
||||
@@ -24,111 +25,111 @@ def lists_match(list_data, item_data): ...
|
||||
class Block:
|
||||
accepts_lines: Any
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...) -> None: ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t) -> None: ...
|
||||
|
||||
class Document(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class List(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class BlockQuote(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class Item(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class Heading(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class ThematicBreak(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class CodeBlock(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class HtmlBlock(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class Paragraph(Block):
|
||||
accepts_lines: bool
|
||||
@staticmethod
|
||||
def continue_(parser: Any | None = ..., container: Any | None = ...): ...
|
||||
def continue_(parser: Incomplete | None = ..., container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def finalize(parser: Any | None = ..., block: Any | None = ...) -> None: ...
|
||||
def finalize(parser: Incomplete | None = ..., block: Incomplete | None = ...) -> None: ...
|
||||
@staticmethod
|
||||
def can_contain(t): ...
|
||||
|
||||
class BlockStarts:
|
||||
METHODS: Any
|
||||
@staticmethod
|
||||
def block_quote(parser, container: Any | None = ...): ...
|
||||
def block_quote(parser, container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def atx_heading(parser, container: Any | None = ...): ...
|
||||
def atx_heading(parser, container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def fenced_code_block(parser, container: Any | None = ...): ...
|
||||
def fenced_code_block(parser, container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def html_block(parser, container: Any | None = ...): ...
|
||||
def html_block(parser, container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def setext_heading(parser, container: Any | None = ...): ...
|
||||
def setext_heading(parser, container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def thematic_break(parser, container: Any | None = ...): ...
|
||||
def thematic_break(parser, container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def list_item(parser, container: Any | None = ...): ...
|
||||
def list_item(parser, container: Incomplete | None = ...): ...
|
||||
@staticmethod
|
||||
def indented_code_block(parser, container: Any | None = ...): ...
|
||||
def indented_code_block(parser, container: Incomplete | None = ...): ...
|
||||
|
||||
class Parser:
|
||||
doc: Any
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
from _typeshed import Incomplete
|
||||
from typing import Any
|
||||
|
||||
from commonmark.render.renderer import Renderer
|
||||
@@ -13,10 +14,10 @@ class HtmlRenderer(Renderer):
|
||||
options: Any
|
||||
def __init__(self, options=...) -> None: ...
|
||||
def escape(self, text): ...
|
||||
def tag(self, name, attrs: Any | None = ..., selfclosing: Any | None = ...) -> None: ...
|
||||
def text(self, node, entering: Any | None = ...) -> None: ...
|
||||
def softbreak(self, node: Any | None = ..., entering: Any | None = ...) -> None: ...
|
||||
def linebreak(self, node: Any | None = ..., entering: Any | None = ...) -> None: ...
|
||||
def tag(self, name, attrs: Incomplete | None = ..., selfclosing: Incomplete | None = ...) -> None: ...
|
||||
def text(self, node, entering: Incomplete | None = ...) -> None: ...
|
||||
def softbreak(self, node: Incomplete | None = ..., entering: Incomplete | None = ...) -> None: ...
|
||||
def linebreak(self, node: Incomplete | None = ..., entering: Incomplete | None = ...) -> None: ...
|
||||
def link(self, node, entering) -> None: ...
|
||||
def image(self, node, entering) -> None: ...
|
||||
def emph(self, node, entering) -> None: ...
|
||||
|
||||
Reference in New Issue
Block a user