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

Discard deprecated builtin_type api #11343

Merged
merged 1 commit into from
Nov 4, 2021

Conversation

97littleleaf11
Copy link
Collaborator

Description

Related to #6578.

builtin_type could be totally replaced with named_type after #11332. Also renames other builtin_type for consistency since all of them are actually calling named_type.

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.

Thanks! Looks good.

@@ -297,11 +297,6 @@ def class_type(self, self_type: Type) -> Type:
"""Generate type of first argument of class methods from type of self."""
raise NotImplementedError

@abstractmethod
def builtin_type(self, fully_qualified_name: str) -> Instance:
Copy link
Collaborator

Choose a reason for hiding this comment

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

It looks like this has been marked as deprecated since 2018, so it seems okay to remove it now.

@JukkaL JukkaL merged commit 5bd2641 into python:master Nov 4, 2021
@97littleleaf11 97littleleaf11 deleted the discard-builtin-type branch November 5, 2021 01:27
hauntsaninja added a commit to hauntsaninja/gino-stubs that referenced this pull request Jan 6, 2022
bryanforbes added a commit to bryanforbes/gino-stubs that referenced this pull request Jan 19, 2022
* Remove use of deprecated builtin_type

This was removed in python/mypy#11343

Co-authored-by: Bryan Forbes <[email protected]>
tushar-deepsource pushed a commit to DeepSourceCorp/mypy that referenced this pull request Jan 20, 2022
Related to python#6578.

builtin_type could be totally replaced with named_type after python#11332. 
Also renames other builtin_type for consistency since all of them are 
actually calling named_type.
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.

2 participants