Skip to content

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