mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Update stub of str to match documentation. (#893)
This commit is contained in:
committed by
Guido van Rossum
parent
9a1e8452a3
commit
c048984ab9
@@ -292,7 +292,7 @@ class unicode(basestring, Sequence[unicode]):
|
||||
def __hash__(self) -> int: ...
|
||||
|
||||
class str(basestring, Sequence[str]):
|
||||
def __init__(self, object: object) -> None: ...
|
||||
def __init__(self, object: object='') -> None: ...
|
||||
def capitalize(self) -> str: ...
|
||||
def center(self, width: int, fillchar: str = ...) -> str: ...
|
||||
def count(self, x: unicode) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user