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
runtime:
akuli@akuli-desktop:/tmp$ cat asd.py class Foo: def __index__(self): return 1 akuli@akuli-desktop:/tmp$ python3.7 -c 'import cmath, asd; cmath.sin(asd.Foo())' Traceback (most recent call last): File "<string>", line 1, in <module> TypeError: must be real number, not Foo akuli@akuli-desktop:/tmp$ python3.8 -c 'import cmath, asd; cmath.sin(asd.Foo())' akuli@akuli-desktop:/tmp$
(The error message is wrong, the functions also accept complex numbers)
Stub:
typeshed/stdlib/cmath.pyi
Line 11 in 05cc30b
Line 30 in 05cc30b
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
runtime:
(The error message is wrong, the functions also accept complex numbers)
Stub:
typeshed/stdlib/cmath.pyi
Line 11 in 05cc30b
typeshed/stdlib/cmath.pyi
Line 30 in 05cc30b
The text was updated successfully, but these errors were encountered: