File tree 1 file changed +11
-0
lines changed 1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -215,6 +215,15 @@ if sys.version_info >= (3, 8):
215
215
type_comments : bool = ...,
216
216
feature_version : None | int | _typing .Tuple [int , int ] = ...,
217
217
) -> Interactive : ...
218
+ @overload
219
+ def parse (
220
+ source : str | bytes ,
221
+ filename : str | bytes = ...,
222
+ mode : str = ...,
223
+ * ,
224
+ type_comments : bool = ...,
225
+ feature_version : None | int | _typing .Tuple [int , int ] = ...,
226
+ ) -> AST : ...
218
227
219
228
else :
220
229
@overload
@@ -227,6 +236,8 @@ else:
227
236
def parse (source : str | bytes , * , mode : Literal ["eval" ]) -> Expression : ...
228
237
@overload
229
238
def parse (source : str | bytes , * , mode : Literal ["single" ]) -> Interactive : ...
239
+ @overload
240
+ def parse (source : str | bytes , filename : str | bytes = ..., mode : str = ...) -> AST : ...
230
241
231
242
if sys .version_info >= (3 , 9 ):
232
243
def unparse (ast_obj : AST ) -> str : ...
You can’t perform that action at this time.
0 commit comments