Skip to content

Refactor: remove unused attribute from PartialType #8078

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

Merged
merged 1 commit into from
Dec 5, 2019
Merged

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented Dec 4, 2019

The inner_types attribute seems to have no effect.

The `inner_types` attribute seems to have no effect.
@JukkaL JukkaL requested a review from ilevkivskyi December 4, 2019 17:16
Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

My guess this was added in an attempt to support something like:

x = []
x.append(1)
x.append('yes')
reveal_type(x)  # List[Union[int, str]]

but yeah, this doesn't work anyway, so no need to keep it. Btw, do we have an issue about allowing the above behavior (specifically for an empty initializer)?

@JukkaL
Copy link
Collaborator Author

JukkaL commented Dec 4, 2019

Btw, do we have an issue about allowing the above behavior (specifically for an empty initializer)?

I couldn't find one, but I also don't think that this is important to support this (and perhaps not even desirable).

@JukkaL JukkaL merged commit a5005f4 into master Dec 5, 2019
@JelleZijlstra JelleZijlstra deleted the partial-refactor branch December 5, 2019 20:09
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
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy