mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 09:48:40 +08:00
Use typing_extensions.Self instead of _typeshed.Self (#9702)
This commit is contained in:
@@ -1,9 +1,8 @@
|
||||
import collections.abc
|
||||
from _typeshed import Self
|
||||
from collections.abc import Callable, Mapping
|
||||
from re import Pattern
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
from typing_extensions import Self, TypeAlias
|
||||
|
||||
from parsimonious.exceptions import ParseError
|
||||
from parsimonious.grammar import Grammar
|
||||
@@ -25,7 +24,7 @@ class Expression(StrAndRepr):
|
||||
name: str
|
||||
identity_tuple: tuple[str]
|
||||
def __init__(self, name: str = ...) -> None: ...
|
||||
def resolve_refs(self: Self, rule_map: Mapping[str, Expression]) -> Self: ...
|
||||
def resolve_refs(self, rule_map: Mapping[str, Expression]) -> Self: ...
|
||||
def parse(self, text: str, pos: int = ...) -> Node: ...
|
||||
def match(self, text: str, pos: int = ...) -> Node: ...
|
||||
def match_core(self, text: str, pos: int, cache: Mapping[tuple[int, int], Node], error: ParseError) -> Node: ...
|
||||
|
||||
Reference in New Issue
Block a user