Skip to content

Commit 537b97e

Browse files
JelleZijlstragvanrossum
authored andcommitted
add bytearray.copy to Python 3 (#2133)
Fixes #1715. 2.7's bytearray doesn't have it.
1 parent db9246b commit 537b97e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

stdlib/3/builtins.pyi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,7 @@ class bytearray(MutableSequence[int], ByteString):
429429
def count(self, sub: Union[bytes, int], start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
430430
else:
431431
def count(self, sub: bytes, start: Optional[int] = ..., end: Optional[int] = ...) -> int: ...
432+
def copy(self) -> bytearray: ...
432433
def decode(self, encoding: str = ..., errors: str = ...) -> str: ...
433434
def endswith(self, suffix: bytes) -> bool: ...
434435
def expandtabs(self, tabsize: int = ...) -> bytearray: ...

0 commit comments

Comments
 (0)