We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The error message for clr.accepts and clr.returns does not display types properly. For example:
clr.accepts
clr.returns
import clr @clr.accepts(int) def test(x): return x test("a")
fails with
AssertionError: argument 0 has bad value (got IronPython.Runtime.Types.PythonType, expected IronPython.Runtime.Types.PythonType)
Similarly with returns:
returns
@clr.returns(int) def test(x): return x test("a")
AssertionError: bad return value returned (expected IronPython.Runtime.Types.PythonType, got IronPython.Runtime.Types.PythonType)
Also, AssertionError is an odd choice of error. Probably a TypeError would be more appropriate?
AssertionError
TypeError
The text was updated successfully, but these errors were encountered:
Fixed by #1449
Sorry, something went wrong.
No branches or pull requests
The error message for
clr.accepts
andclr.returns
does not display types properly. For example:fails with
Similarly with
returns
:Also,
AssertionError
is an odd choice of error. Probably aTypeError
would be more appropriate?The text was updated successfully, but these errors were encountered: