Closed dvarrazzo closed 1 year ago
Hello,
This line:
https://github.com/t3rn0/ast-comments/blob/d5d6ed1f8409c4a7c9706a9b320b7f6a324a298c/ast_comments.py#L7
Causes typing objects to eclypse the ast objects imported in from ast import *. As a consequence checking for objects to be Dict, List, Tuple fails to perform the expected check.
from ast import *
Dict
List
Tuple
>>> import ast >>> import ast_comments >>> ast.Str is ast_comments.Str True >>> ast.Dict is ast_comments.Dict False >>> ast_comments.Str <class 'ast.Str'> >>> ast_comments.Dict typing.Dict
Hi. I'll work on it as soon as possible right after dealing with this one (#21)
Published 1.1.2 with changes concerning this issue.
Hello,
This line:
https://github.com/t3rn0/ast-comments/blob/d5d6ed1f8409c4a7c9706a9b320b7f6a324a298c/ast_comments.py#L7
Causes typing objects to eclypse the ast objects imported in
from ast import *
. As a consequence checking for objects to beDict
,List
,Tuple
fails to perform the expected check.