mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
54 lines
1.8 KiB
Python
54 lines
1.8 KiB
Python
"""Stub file for the '_sre' module."""
|
|
# This is an autogenerated file. It serves as a starting point
|
|
# for a more percise manual annotation of this module.
|
|
# Feel free to edit the source below, but remove this header when you do.
|
|
|
|
from typing import List, Tuple, Dict, Undefined, GenericType
|
|
|
|
CODESIZE = Undefined(int)
|
|
MAGIC = Undefined(int)
|
|
MAXREPEAT = Undefined(long)
|
|
copyright = Undefined(str)
|
|
|
|
def compile(a, b: int, c, *args, **kwargs) -> SRE_Pattern:
|
|
raise OverflowError()
|
|
|
|
def getcodesize() -> int: pass
|
|
|
|
def getlower(a: int, b: int) -> int: pass
|
|
|
|
|
|
class SRE_Match(object):
|
|
def __copy__() -> object:
|
|
raise TypeError()
|
|
def __deepcopy__(*args, **kwargs) -> object:
|
|
raise TypeError()
|
|
def end(*args, **kwargs) -> int:
|
|
raise IndexError()
|
|
def expand(*args, **kwargs) -> object: pass
|
|
def group(*args, **kwargs) -> tuple: pass
|
|
def groupdict(*args, **kwargs) -> dict: pass
|
|
def groups(*args, **kwargs) -> tuple: pass
|
|
def span(*args, **kwargs) -> tuple:
|
|
raise IndexError()
|
|
def start(*args, **kwargs) -> int:
|
|
raise IndexError()
|
|
|
|
class SRE_Pattern(object):
|
|
def __copy__() -> object:
|
|
raise TypeError()
|
|
def __deepcopy__(*args, **kwargs) -> object:
|
|
raise TypeError()
|
|
def findall(source, *args, **kwargs) -> List[tuple]: pass
|
|
def finditer(*args, **kwargs) -> callable_iterator: pass
|
|
def match(pattern, *args, **kwargs) -> object: pass
|
|
def scanner(a, *args, **kwargs) -> SRE_Scanner: pass
|
|
def search(pattern, *args, **kwargs) -> object: pass
|
|
def split(source, *args, **kwargs) -> List[None]: pass
|
|
def sub(repl, string, *args, **kwargs) -> tuple: pass
|
|
def subn(repl, string, *args, **kwargs) -> tuple: pass
|
|
|
|
class SRE_Scanner(object):
|
|
def match() -> object: pass
|
|
def search() -> object: pass
|