From ef46c95c9e8d66f478058d00edae63a6d179dd8d Mon Sep 17 00:00:00 2001 From: Sebastian Steenbuck Date: Tue, 7 Nov 2017 15:42:23 +0100 Subject: [PATCH] Add List to the typing imports and order the imports (#1717) List is used but not imported. According to PEP-484 "Suggested syntax for Python 2.7 and straddling code" it should be imports. "Like other type comments, any names used in the annotations must be imported or defined by the module containing the annotation.". Also order the typing import list, because it looks nicer. --- stdlib/3/_importlib_modulespec.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/3/_importlib_modulespec.pyi b/stdlib/3/_importlib_modulespec.pyi index 33c30d537..b17e77f90 100644 --- a/stdlib/3/_importlib_modulespec.pyi +++ b/stdlib/3/_importlib_modulespec.pyi @@ -7,7 +7,7 @@ from abc import ABCMeta import sys -from typing import Dict, Any, Optional +from typing import Any, Dict, List, Optional if sys.version_info >= (3, 4): class ModuleSpec: