diff --git a/python/helpers/python-skeletons/os/__init__.py b/python/helpers/python-skeletons/os/__init__.py index 693818ce40e1..058383bad3db 100644 --- a/python/helpers/python-skeletons/os/__init__.py +++ b/python/helpers/python-skeletons/os/__init__.py @@ -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]