8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
--warn-return-any
1 parent 55ed85e commit bdd377cCopy full SHA for bdd377c
Tools/clinic/clinic.py
@@ -4288,7 +4288,7 @@ def eval_ast_expr(
4288
globals: dict[str, Any],
4289
*,
4290
filename: str = '-'
4291
-) -> FunctionType:
+) -> Any:
4292
"""
4293
Takes an ast.Expr node. Compiles and evaluates it.
4294
Returns the result of the expression.
Tools/clinic/mypy.ini
@@ -5,11 +5,8 @@ pretty = True
5
# make sure clinic can still be run on Python 3.10
6
python_version = 3.10
7
8
-# be strict...
+# and be strict!
9
strict = True
10
strict_concatenate = True
11
enable_error_code = ignore-without-code,redundant-expr
12
warn_unreachable = True
13
-
14
-# ...except for one extra rule we can't enable just yet
15
-warn_return_any = False
0 commit comments