Skip to content

Commit df8472f

Browse files
authored
Improve UnicodeTranslateError stub (#6397)
1 parent 575a008 commit df8472f

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

stdlib/builtins.pyi

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1628,7 +1628,14 @@ class UnicodeEncodeError(UnicodeError):
16281628
reason: str
16291629
def __init__(self, __encoding: str, __object: str, __start: int, __end: int, __reason: str) -> None: ...
16301630

1631-
class UnicodeTranslateError(UnicodeError): ...
1631+
class UnicodeTranslateError(UnicodeError):
1632+
encoding: None
1633+
object: str
1634+
start: int
1635+
end: int
1636+
reason: str
1637+
def __init__(self, __object: str, __start: int, __end: int, __reason: str) -> None: ...
1638+
16321639
class Warning(Exception): ...
16331640
class UserWarning(Warning): ...
16341641
class DeprecationWarning(Warning): ...

0 commit comments

Comments
 (0)