Skip to content

Commit cff6e8d

Browse files
committed
simplify
1 parent b5cf9e4 commit cff6e8d

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

stdlib/sre_compile.pyi

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,11 @@ from re import Pattern
22
from sre_constants import *
33
from sre_constants import _NamedIntConstant
44
from sre_parse import SubPattern
5-
from typing import Any, Final, Literal, overload
5+
from typing import Any, Final
66
from typing_extensions import TypeIs
77

88
MAXCODE: Final[int]
99

1010
def dis(code: list[_NamedIntConstant]) -> None: ...
11-
@overload
12-
def isstring(obj: str | bytes) -> Literal[True]: ...
13-
@overload
1411
def isstring(obj: object) -> TypeIs[str | bytes]: ...
1512
def compile(p: str | bytes | SubPattern, flags: int = 0) -> Pattern[Any]: ...

0 commit comments

Comments
 (0)