mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-07-19 22:50:29 +08:00
Replace Incomplete | None = None in third party stubs (#14063)
This commit is contained in:
@@ -28,7 +28,7 @@ class ParserRuleContext(RuleContext):
|
||||
def addTokenNode(self, token: Token): ...
|
||||
def addErrorNode(self, badToken: Token): ...
|
||||
def getChild(self, i: int, ttype: type | None = None): ...
|
||||
def getChildren(self, predicate: Incomplete | None = None) -> Generator[Incomplete, None, None]: ...
|
||||
def getChildren(self, predicate=None) -> Generator[Incomplete, None, None]: ...
|
||||
def getToken(self, ttype: int, i: int): ...
|
||||
def getTokens(self, ttype: int): ...
|
||||
def getTypedRuleContext(self, ctxType: type, i: int): ...
|
||||
|
||||
@@ -24,7 +24,7 @@ class ATNConfigSet:
|
||||
cachedHashCode: int
|
||||
def __init__(self, fullCtx: bool = True) -> None: ...
|
||||
def __iter__(self): ...
|
||||
def add(self, config: ATNConfig, mergeCache: Incomplete | None = None): ...
|
||||
def add(self, config: ATNConfig, mergeCache=None): ...
|
||||
def getOrAdd(self, config: ATNConfig): ...
|
||||
def getStates(self): ...
|
||||
def getPredicates(self): ...
|
||||
|
||||
@@ -30,7 +30,7 @@ class ATNDeserializer:
|
||||
def stateIsEndStateFor(self, state: ATNState, idx: int): ...
|
||||
def markPrecedenceDecisions(self, atn: ATN): ...
|
||||
def verifyATN(self, atn: ATN): ...
|
||||
def checkCondition(self, condition: bool, message: Incomplete | None = None): ...
|
||||
def checkCondition(self, condition: bool, message=None): ...
|
||||
def readInt(self): ...
|
||||
edgeFactories: Incomplete
|
||||
def edgeFactory(self, atn: ATN, type: int, src: int, trg: int, arg1: int, arg2: int, arg3: int, sets: list[Incomplete]): ...
|
||||
|
||||
@@ -21,11 +21,7 @@ class RecognitionException(Exception):
|
||||
offendingToken: Incomplete
|
||||
offendingState: int
|
||||
def __init__(
|
||||
self,
|
||||
message: str | None = None,
|
||||
recognizer: Recognizer | None = None,
|
||||
input: InputStream | None = None,
|
||||
ctx: Incomplete | None = None,
|
||||
self, message: str | None = None, recognizer: Recognizer | None = None, input: InputStream | None = None, ctx=None
|
||||
) -> None: ...
|
||||
def getExpectedTokens(self): ...
|
||||
|
||||
@@ -42,10 +38,10 @@ class NoViableAltException(RecognitionException):
|
||||
def __init__(
|
||||
self,
|
||||
recognizer,
|
||||
input: Incomplete | None = None,
|
||||
startToken: Incomplete | None = None,
|
||||
offendingToken: Incomplete | None = None,
|
||||
deadEndConfigs: Incomplete | None = None,
|
||||
input=None,
|
||||
startToken=None,
|
||||
offendingToken=None,
|
||||
deadEndConfigs=None,
|
||||
ctx: ParserRuleContext | None = None,
|
||||
) -> None: ...
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ class XPathLexer(Lexer):
|
||||
symbolicNames: Incomplete
|
||||
ruleNames: Incomplete
|
||||
grammarFileName: str
|
||||
def __init__(self, input: Incomplete | None = None, output: TextIO = ...) -> None: ...
|
||||
def __init__(self, input=None, output: TextIO = ...) -> None: ...
|
||||
def action(self, localctx: RuleContext, ruleIndex: int, actionIndex: int): ...
|
||||
type: Incomplete
|
||||
def ID_action(self, localctx: RuleContext, actionIndex: int): ...
|
||||
|
||||
Reference in New Issue
Block a user