From 6582a8fb598f0b3b9c65c4e536b6322a6c6d4f14 Mon Sep 17 00:00:00 2001 From: Sam Dunster Date: Tue, 18 Apr 2017 21:08:06 -0700 Subject: [PATCH] Add collections.abc.Collection (#1177) --- stdlib/3/collections/__init__.pyi | 5 ++++- stdlib/3/collections/abc.pyi | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/stdlib/3/collections/__init__.pyi b/stdlib/3/collections/__init__.pyi index 1ccb98d3c..b8ce0c9f3 100644 --- a/stdlib/3/collections/__init__.pyi +++ b/stdlib/3/collections/__init__.pyi @@ -38,7 +38,10 @@ from typing import ( AbstractSet as Set, ) if sys.version_info >= (3, 6): - from typing import AsyncGenerator as AsyncGenerator + from typing import ( + Collection as Collection, + AsyncGenerator as AsyncGenerator, + ) _T = TypeVar('_T') _KT = TypeVar('_KT') diff --git a/stdlib/3/collections/abc.pyi b/stdlib/3/collections/abc.pyi index 5106ec513..03e7086bb 100644 --- a/stdlib/3/collections/abc.pyi +++ b/stdlib/3/collections/abc.pyi @@ -34,6 +34,7 @@ if sys.version_info >= (3, 5): if sys.version_info >= (3, 6): from . import ( + Collection as Collection, Reversible as Reversible, AsyncGenerator as AsyncGenerator, )