Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solving the type error in line 331 in ipython/core/interactiveshell.py #14359

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

DrManishSharma
Copy link

List isn't subscriptable and line 331 in interactiveshell.py defines list as:

List[ast.NodeTransformer]

which causes a

TypeError: 'type' object is not subscriptable.

To solve it change the line 331 to:

ast_transformers: List = List(

Copy link
Member

@krassowski krassowski left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should not be needed with correct version of tratilets installed. Removing generic information from the type will make errors in the codebase more likely in the future. Please see #14358 (comment) for context.

@huangchengshun

This comment was marked as spam.

@huangchengshun
Copy link

中国华为系统与湖南各地市/县小程序就是个盗窃贼此事我在黑客委员大会上也讨论过

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants