8000 gh-104050: Argument clinic: enable mypy's `--warn-return-any` setting by AlexWaygood · Pull Request #107405 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-104050: Argument clinic: enable mypy's --warn-return-any setting #107405

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 4 commits into from
Jul 29, 2023
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Revert "add an essay explaining the return annotation"
This reverts commit a5103be.
  • Loading branch information
AlexWaygood committed Jul 29, 2023
commit 8aed224000a03424cab7a19e44a009aa3a8287af
5 changes: 0 additions & 5 deletions Tools/clinic/clinic.py
Original file line number Diff line number Diff line change
Expand Up @@ -4283,11 +4283,6 @@ class float_return_converter(double_return_converter):
cast = '(double)'


# What do we do in this function?
# We take an arbitrary AST node, compile the node into a function object,
# call that function with 0 arguments, and return whatever the call returns.
# The only possible return annotations here would be `object` or `Any`,
# and `object` would be too annoying. Return `Any`!
def eval_ast_expr(
node: ast.expr,
globals: dict[str, Any],
Expand Down
0