mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-10 13:32:26 +08:00
Add attribute 'name' to StringIO (#600)
Add an attribute 'name' of type str to StringIO.StringIO in python2 and io.StringIO in python2 and python3. Fixes #598.
This commit is contained in:
committed by
Matthias Kramm
parent
08ac3b7742
commit
7f7a5789bd
@@ -246,6 +246,7 @@ class TextIOWrapper(TextIO):
|
||||
class StringIO(TextIOWrapper):
|
||||
def __init__(self, initial_value: str = ...,
|
||||
newline: Optional[str] = ...) -> None: ...
|
||||
name = ... # type: str
|
||||
def getvalue(self) -> str: ...
|
||||
|
||||
class IncrementalNewlineDecoder(codecs.IncrementalDecoder): ...
|
||||
|
||||
Reference in New Issue
Block a user