Skip to content

Commit

Permalink
Updated conformance test results to reflect recent change to the rule…
Browse files Browse the repository at this point in the history
…s about `NoReturn`. The previous version of the spec indicates that type checkers should reject the use of `NoReturn` outside of a return type annotation.
  • Loading branch information
erictraut committed Jan 12, 2024
1 parent 071c685 commit 297105a
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 10 deletions.
5 changes: 1 addition & 4 deletions conformance/results/mypy/specialtypes_never.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
conformant = "Partial"
notes = """
Does not reject NoReturn when used outside of return type annotation.
"""
conformant = "Pass"
output = """
specialtypes_never.py:19: error: Implicit return in function which does not return [misc]
specialtypes_never.py:85: error: Incompatible types in assignment (expression has type "list[NoReturn]", variable has type "list[int]") [assignment]
Expand Down
1 change: 0 additions & 1 deletion conformance/results/pyre/specialtypes_never.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
conformant = "Partial"
notes = """
Does not reject NoReturn when used outside of return type annotation.
Does not treat Never as compatible with all other types.
"""
output = """
Expand Down
5 changes: 1 addition & 4 deletions conformance/results/pyright/specialtypes_never.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
conformant = "Partial"
notes = """
Does not reject NoReturn when used outside of return type annotation.
"""
conformant = "Pass"
output = """
specialtypes_never.py:19:22 - error: Function with declared return type "NoReturn" cannot return "None" (reportGeneralTypeIssues)
specialtypes_never.py:85:21 - error: Expression of type "list[Never]" cannot be assigned to declared type "list[int]"
Expand Down
2 changes: 1 addition & 1 deletion conformance/results/results.html

Large diffs are not rendered by default.

0 comments on commit 297105a

Please sign in to comment.