Skip to content

sysconfig.get_config_var should return Any #8572

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
Aug 20, 2022

Conversation

emmatyping
Copy link
Member

This can return str, int (e.g. SIZEOF_SIZE_T), None... and maybe more. In the interest of being defensive, have it return Any.

This can return str, int, None... and maybe more. In the interest of being defensive, have it return Any.
@github-actions
Copy link
Contributor

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

packaging (https://github.com/pypa/packaging)
+ packaging/tags.py:119: error: Returning Any from function declared to return "Union[int, str, None]"  [no-any-return]

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