mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Inherit os._wrap_close skeleton from io.TextIOWrapper[unicode] because it redirects all calls to wrapped value
This commit is contained in:
@@ -319,7 +319,7 @@ def popen(command, mode='r', bufsize=-1):
|
||||
pass
|
||||
|
||||
|
||||
class _wrap_close:
|
||||
class _wrap_close(io.TextIOWrapper[unicode]):
|
||||
def __init__(self, stream, proc):
|
||||
"""
|
||||
:type stream: io.TextIOWrapper[unicode]
|
||||
@@ -342,9 +342,6 @@ class _wrap_close:
|
||||
def __exit__(self, *args):
|
||||
pass
|
||||
|
||||
def __getattr__(self, name):
|
||||
pass
|
||||
|
||||
def __iter__(self):
|
||||
"""
|
||||
:rtype: collections.Iterator[unicode]
|
||||
|
||||
Reference in New Issue
Block a user