Skip to content

Conversation

@arjunmalkani
Copy link

Added an optional error code in errorcodes.py which flags missing return type annotations in functions that have annotated parameters. The check runs in semanal.py and ignores init and lambdas. There is also a small unit test file which demonstrates behavior.

@github-actions
Copy link
Contributor

github-actions bot commented Oct 2, 2025

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

@A5rocks
Copy link
Collaborator

A5rocks commented Oct 3, 2025

I'm going to close this in favor of #19125. Please let me know if that is missing something. (In fact, now that you know how to implement parts, you can review that PR!)

@A5rocks A5rocks closed this Oct 3, 2025
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.

3 participants