bpo-32892: Support subclasses of base types in isinstance checks for … · python/cpython@6015cc5 · GitHub
Skip to content

Commit 6015cc5

Browse files
bpo-32892: Support subclasses of base types in isinstance checks for AST constants. (GH-9934)
Some projects (e.g. Chameleon) create ast.Str containing an instance of the str subclass.
1 parent 913876d commit 6015cc5

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Lib/ast.py

Lines changed: 1 addition & 1 deletion

Lib/test/test_ast.py

Lines changed: 4 additions & 0 deletions

0 commit comments

Comments
 (0)