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

Adding optional error flag missing return type #15565

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

joaopedro-s
Copy link

Adding optional error flag for missing return type, when a function has at least one typed argument. This will address issue #15127

Adding optional error flag for missing return type, when a function has at least one typed argument. This will address issue python#15127

Co-Authored-By: Leonardo Abreu Santos <31524775+saintleonar@users.noreply.github.com>
@github-actions
Copy link
Contributor

github-actions bot commented Jul 1, 2023

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

werkzeug (https://github.com/pallets/werkzeug)
- tests/test_serving.py:44: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_serving.py:44: error: Function is missing a return type annotation  [no-untyped-ret]
- tests/test_formparser.py:367: error: Function is missing a return type annotation  [no-untyped-def]
+ tests/test_formparser.py:367: error: Function is missing a return type annotation  [no-untyped-ret]

steam.py (https://github.com/Gobot1234/steam.py)
- steam/_const.py:64: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/_const.py:64: error: Function is missing a return type annotation  [no-untyped-ret]
- steam/state.py:1132: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/state.py:1132: error: Function is missing a return type annotation  [no-untyped-ret]
- steam/ext/csgo/state.py:177: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/ext/csgo/state.py:177: error: Function is missing a return type annotation  [no-untyped-ret]
- steam/ext/csgo/state.py:233: error: Function is missing a return type annotation  [no-untyped-def]
+ steam/ext/csgo/state.py:233: error: Function is missing a return type annotation  [no-untyped-ret]

rich (https://github.com/Textualize/rich)
+ rich/progress.py:241: error: Unused "type: ignore[no-untyped-def]" comment  [unused-ignore]
+ rich/progress.py:241: error: Function is missing a return type annotation  [no-untyped-ret]
+ rich/progress.py:241: note: Error code "no-untyped-ret" not covered by "type: ignore" comment

urllib3 (https://github.com/urllib3/urllib3)
+ src/urllib3/util/url.py:100: error: Unused "type: ignore" comment  [unused-ignore]
+ src/urllib3/util/url.py:100: error: Function is missing a return type annotation  [no-untyped-ret]
+ src/urllib3/util/url.py:100: note: Error code "no-untyped-ret" not covered by "type: ignore" comment

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.

1 participant