From 3c76029c5730901e2c3f5acc60e0da2db1edf4e2 Mon Sep 17 00:00:00 2001 From: Daniel F Moisset Date: Thu, 18 Aug 2016 13:57:16 +0100 Subject: [PATCH] Added attributes for UnicodeEncodeError (#481) --- stdlib/3/builtins.pyi | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/stdlib/3/builtins.pyi b/stdlib/3/builtins.pyi index 541bc1588..b4ee85b2d 100644 --- a/stdlib/3/builtins.pyi +++ b/stdlib/3/builtins.pyi @@ -827,7 +827,14 @@ class UnicodeDecodeError(UnicodeError): reason = ... # type: str def __init__(self, __encoding: str, __object: bytes, __start: int, __end: int, __reason: str) -> None: ... -class UnicodeEncodeError(UnicodeError): ... +class UnicodeEncodeError(UnicodeError): + encoding = ... # type: str + object = ... # type: str + start = ... # type: int + end = ... # type: int + reason = ... # type: str + def __init__(self, __encoding: str, __object: str, __start: int, __end: int, + __reason: str) -> None: ... class UnicodeTranslateError(UnicodeError): ... class ZeroDivisionError(ArithmeticError): ...