mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 21:46:42 +08:00
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.
This commit is contained in:
committed by
Matthias Kramm
parent
275d9b5818
commit
ef46c95c9e
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user