mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-27 05:12:10 +08:00
re: 3.11 fixes (#7859)
This commit is contained in:
@@ -19,7 +19,8 @@ if sys.version_info >= (3, 7):
|
||||
TYPE_FLAGS: int
|
||||
GLOBAL_FLAGS: int
|
||||
|
||||
class Verbose(Exception): ...
|
||||
if sys.version_info < (3, 11):
|
||||
class Verbose(Exception): ...
|
||||
|
||||
class _State:
|
||||
flags: int
|
||||
@@ -87,6 +88,9 @@ class Tokenizer:
|
||||
def seek(self, index: int) -> None: ...
|
||||
def error(self, msg: str, offset: int = ...) -> _Error: ...
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
def checkgroupname(self, name: str, offset: int, nested: int) -> None: ...
|
||||
|
||||
def fix_flags(src: str | bytes, flags: int) -> int: ...
|
||||
|
||||
_TemplateType: TypeAlias = tuple[list[tuple[int, int]], list[str | None]]
|
||||
|
||||
Reference in New Issue
Block a user