From 8fba7e89885ca1743915bb20e71bf89290e47026 Mon Sep 17 00:00:00 2001 From: Semyon Proshev Date: Fri, 28 Oct 2016 19:53:00 +0300 Subject: [PATCH] Inherit os._wrap_close skeleton from io.TextIOWrapper[unicode] because it redirects all calls to wrapped value --- python/helpers/python-skeletons/os/__init__.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) 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]