Commit 7f9a18d
committed
conformance: allow emitting an error on missing return with Any annotation
Pycroscope produces an error on the existing open() function in this file
because it is annotated as returning Any, but doesn't have a return statement.
There's some existing discussion of this case in python/mypy#10297
showing that it is intentional for mypy to not error here, but I don't think
we need to prohibit type checkers from emitting an error in this case
if they choose.1 parent 21b0785 commit 7f9a18d
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| |||
0 commit comments