From d275e73e1fe67c0824733406d8ae5071d775f570 Mon Sep 17 00:00:00 2001 From: Rebecca Chen Date: Thu, 14 Feb 2019 12:29:19 -0800 Subject: [PATCH] Remove pytype workaround in os/__init__.pyi. (#2797) Pytype release 2019.02.13 fixed the bug that necessitated this workaround. --- requirements-tests-py3.txt | 2 +- stdlib/2/os/__init__.pyi | 3 --- stdlib/3/os/__init__.pyi | 3 --- 3 files changed, 1 insertion(+), 7 deletions(-) diff --git a/requirements-tests-py3.txt b/requirements-tests-py3.txt index 340698b53..3ccda8431 100644 --- a/requirements-tests-py3.txt +++ b/requirements-tests-py3.txt @@ -3,4 +3,4 @@ typed-ast>=1.0.4 flake8==3.6.0 flake8-bugbear==18.8.0 flake8-pyi==18.3.1 -pytype>=2018.9.19 +pytype>=2019.2.13 diff --git a/stdlib/2/os/__init__.pyi b/stdlib/2/os/__init__.pyi index f7e376414..4a8489347 100644 --- a/stdlib/2/os/__init__.pyi +++ b/stdlib/2/os/__init__.pyi @@ -11,9 +11,6 @@ from typing import ( ) from . import path as path -# Workaround a pytype crash (see #2683) -from builtins import bytes - _T = TypeVar('_T') # ----- os variables ----- diff --git a/stdlib/3/os/__init__.pyi b/stdlib/3/os/__init__.pyi index 403093ed3..2197a4e8c 100644 --- a/stdlib/3/os/__init__.pyi +++ b/stdlib/3/os/__init__.pyi @@ -12,9 +12,6 @@ from typing import ( from builtins import OSError as error from . import path as path -# Workaround a pytype crash (see #2683) -from builtins import bytes - _T = TypeVar('_T') # ----- os variables -----