mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-01 04:52:21 +08:00
Use typing_extensions.Self instead of _typeshed.Self (#9702)
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
from _typeshed import Self
|
||||
from collections.abc import Callable, Mapping, Sequence
|
||||
from typing import Any, ClassVar, Protocol
|
||||
from typing_extensions import Literal
|
||||
from typing_extensions import Literal, Self
|
||||
from xml.etree.ElementTree import Element
|
||||
|
||||
from .blockparser import BlockParser
|
||||
@@ -45,7 +44,7 @@ class Markdown:
|
||||
def registerExtensions(self, extensions: Sequence[Extension | str], configs: Mapping[str, Mapping[str, Any]]) -> Markdown: ...
|
||||
def build_extension(self, ext_name: str, configs: Mapping[str, str]) -> Extension: ...
|
||||
def registerExtension(self, extension: Extension) -> Markdown: ...
|
||||
def reset(self: Self) -> Self: ...
|
||||
def reset(self) -> Self: ...
|
||||
def set_output_format(self, format: Literal["xhtml", "html"]) -> Markdown: ...
|
||||
def is_block_level(self, tag: str) -> bool: ...
|
||||
def convert(self, source: str) -> str: ...
|
||||
|
||||
Reference in New Issue
Block a user