mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
13 lines
401 B
Python
13 lines
401 B
Python
from re import Pattern
|
|
from sre_constants import *
|
|
from sre_constants import _NamedIntConstant
|
|
from sre_parse import SubPattern
|
|
from typing import Any, Final
|
|
from typing_extensions import TypeIs
|
|
|
|
MAXCODE: Final[int]
|
|
|
|
def dis(code: list[_NamedIntConstant]) -> None: ...
|
|
def isstring(obj: object) -> TypeIs[str | bytes]: ...
|
|
def compile(p: str | bytes | SubPattern, flags: int = 0) -> Pattern[Any]: ...
|