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

Rename MemberContext.builtin_type with named_type #11224

Merged

Conversation

97littleleaf11
Copy link
Collaborator

Description

Currently TypeChecker.named_type is been called inside MemberContext.builtin_type thus this PR renames MemberContext.builtin_type with named_type for consistency.

Another reason for this change is that we sometimes call this function for non-builtins.

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

Makes sense! builtin_type has been deprecated, so this makes things more consistent and clearer.

@JukkaL JukkaL merged commit bffeb2e into python:master Oct 1, 2021
@97littleleaf11 97littleleaf11 deleted the rename-membercontext-builtin-type branch October 1, 2021 16:18
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.

3 participants