KEMBAR78
Rename MemberContext.builtin_type with named_type by 97littleleaf11 · Pull Request #11224 · python/mypy · GitHub
Skip to content

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