Add isascii methods to str, bytes, and bytearray [Python 3.7]. (#2834)

This commit is contained in:
Brandt Bucher
2019-03-08 11:07:28 -08:00
committed by Jelle Zijlstra
parent 4dcd516caa
commit ab4c262043
2 changed files with 12 additions and 0 deletions

View File

@@ -426,6 +426,8 @@ class str(Sequence[str], _str_base):
def index(self, sub: Text, __start: Optional[int] = ..., __end: Optional[int] = ...) -> int: ...
def isalnum(self) -> bool: ...
def isalpha(self) -> bool: ...
if sys.version_info >= (3, 7):
def isascii(self) -> bool: ...
if sys.version_info >= (3,):
def isdecimal(self) -> bool: ...
def isdigit(self) -> bool: ...
@@ -566,6 +568,8 @@ if sys.version_info >= (3,):
def index(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
def isalnum(self) -> bool: ...
def isalpha(self) -> bool: ...
if sys.version_info >= (3, 7):
def isascii(self) -> bool: ...
def isdigit(self) -> bool: ...
def islower(self) -> bool: ...
def isspace(self) -> bool: ...
@@ -671,6 +675,8 @@ class bytearray(MutableSequence[int], ByteString):
def insert(self, index: int, object: int) -> None: ...
def isalnum(self) -> bool: ...
def isalpha(self) -> bool: ...
if sys.version_info >= (3, 7):
def isascii(self) -> bool: ...
def isdigit(self) -> bool: ...
def islower(self) -> bool: ...
def isspace(self) -> bool: ...