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

Fix cases of type object handling for overloads #16168

Merged
merged 2 commits into from
Oct 1, 2023

Conversation

hauntsaninja
Copy link
Collaborator

Fixes most of #12320. I didn't add tests for every code path because it's niche. I also didn't fix everything, in particular the cases where we proceed to use ret_type

Fixes most of python#12320. I didn't add tests for every code path because
it's niche. I also didn't fix everything, in particular the cases where
we proceed to use `ret_type`, or ones I thought were scary
@github-actions

This comment has been minimized.

@github-actions
Copy link
Contributor

Diff from mypy_primer, showing the effect of this PR on open source code:

hydra-zen (https://github.com/mit-ll-responsible-ai/hydra-zen)
- src/hydra_zen/structured_configs/_utils.py:341: error: Value of type "type[list[Any]]" is not indexable  [index]
+ src/hydra_zen/structured_configs/_utils.py:341: error: The type "type[list[Any]]" is not generic and not indexable  [misc]

@hauntsaninja hauntsaninja merged commit 3d3e482 into python:master Oct 1, 2023
18 checks passed
@hauntsaninja hauntsaninja deleted the type-object-handling branch October 1, 2023 09:06
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