mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
move re.error into re.pyi (#11188)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import sys
|
||||
from re import error as error
|
||||
from typing import Any
|
||||
from typing_extensions import Self
|
||||
|
||||
@@ -6,14 +7,6 @@ MAXGROUPS: int
|
||||
|
||||
MAGIC: int
|
||||
|
||||
class error(Exception):
|
||||
msg: str
|
||||
pattern: str | bytes | None
|
||||
pos: int | None
|
||||
lineno: int
|
||||
colno: int
|
||||
def __init__(self, msg: str, pattern: str | bytes | None = None, pos: int | None = None) -> None: ...
|
||||
|
||||
class _NamedIntConstant(int):
|
||||
name: Any
|
||||
def __new__(cls, value: int, name: str) -> Self: ...
|
||||
|
||||
Reference in New Issue
Block a user