From c11d94dbd7bddc0b8946f58e5c8586af72fb4ce0 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Wed, 14 Sep 2016 13:41:34 +0200 Subject: [PATCH 1/5] implement PEP 526 in typed_ast --- third_party/3/typed_ast/ast35.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/third_party/3/typed_ast/ast35.pyi b/third_party/3/typed_ast/ast35.pyi index 738ac7d8b9d1..8c68ce03d77e 100644 --- a/third_party/3/typed_ast/ast35.pyi +++ b/third_party/3/typed_ast/ast35.pyi @@ -89,7 +89,7 @@ class Delete(stmt): class Assign(stmt): targets = ... # type: typing.List[expr] value = ... # type: expr - type_comment = ... # type: Optional[str] + type_comment = ... # type: Union[AST, Optional[str]] class AugAssign(stmt): target = ... # type: expr From 4f6409a96b955c864e5a3f6549ab1200de6b6b9d Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Thu, 15 Sep 2016 17:08:00 +0200 Subject: [PATCH 2/5] Add new_syntax flag to ast35 typeshed --- third_party/3/typed_ast/ast35.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/third_party/3/typed_ast/ast35.pyi b/third_party/3/typed_ast/ast35.pyi index 738ac7d8b9d1..c9a9c98704f1 100644 --- a/third_party/3/typed_ast/ast35.pyi +++ b/third_party/3/typed_ast/ast35.pyi @@ -89,7 +89,8 @@ class Delete(stmt): class Assign(stmt): targets = ... # type: typing.List[expr] value = ... # type: expr - type_comment = ... # type: Optional[str] + type_comment = ... # type: Union[AST, Optional[str]] + new_syntax = ... # type: int class AugAssign(stmt): target = ... # type: expr From 22e308303eea4f2a7e08f70cc635c051cc504e54 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Thu, 15 Sep 2016 19:14:01 +0200 Subject: [PATCH 3/5] Add __version__ to typed_ast typeshed --- third_party/3/typed_ast/__init__.pyi | 2 ++ 1 file changed, 2 insertions(+) diff --git a/third_party/3/typed_ast/__init__.pyi b/third_party/3/typed_ast/__init__.pyi index 92e1216b1150..c3147c10fd89 100644 --- a/third_party/3/typed_ast/__init__.pyi +++ b/third_party/3/typed_ast/__init__.pyi @@ -1,2 +1,4 @@ # This module is a fork of the CPython 2.7 and 3.5 ast modules with PEP 484 support. # See: https://github.com/dropbox/typed_ast + +__version__ = ... # type: str From 66611e7a8fad4f5f14ed477f4b413c24562a8a4c Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Tue, 27 Sep 2016 22:16:30 +0200 Subject: [PATCH 4/5] Update for new implementation of PEP 526 --- third_party/3/typed_ast/ast35.pyi | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/third_party/3/typed_ast/ast35.pyi b/third_party/3/typed_ast/ast35.pyi index c9a9c98704f1..04e8a295d19f 100644 --- a/third_party/3/typed_ast/ast35.pyi +++ b/third_party/3/typed_ast/ast35.pyi @@ -88,9 +88,9 @@ class Delete(stmt): class Assign(stmt): targets = ... # type: typing.List[expr] - value = ... # type: expr - type_comment = ... # type: Union[AST, Optional[str]] - new_syntax = ... # type: int + value = ... # type: Optional[expr] + type_comment = ... # type: Optional[str] + annotation = ... # type: Optional[expr] class AugAssign(stmt): target = ... # type: expr From 81697978340567c341d75c2713576588d6033136 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Wed, 28 Sep 2016 14:14:04 +0200 Subject: [PATCH 5/5] Remove version for typed_ast --- third_party/3/typed_ast/__init__.pyi | 2 -- 1 file changed, 2 deletions(-) diff --git a/third_party/3/typed_ast/__init__.pyi b/third_party/3/typed_ast/__init__.pyi index c3147c10fd89..92e1216b1150 100644 --- a/third_party/3/typed_ast/__init__.pyi +++ b/third_party/3/typed_ast/__init__.pyi @@ -1,4 +1,2 @@ # This module is a fork of the CPython 2.7 and 3.5 ast modules with PEP 484 support. # See: https://github.com/dropbox/typed_ast - -__version__ = ... # type: str