Exception thrown when callback function uses Python3 return value declaration
See original GitHub issueWhen I define a callback/event function as:
bd_pressed() -> None:
...
then bluedot/dot.py fails in _process_callback (or more precisely, in getargspec) with the error message “ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them”.
Issue Analytics
- State:
- Created 6 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Python exception thrown by libtidy is amusingly impossible to ...
p.s. I do return a false value to the calling function, to remove the record from further processing, but I've reduced the code...
Read more >Exception Handling — Python 3.11.1 documentation
The return value is 0 if no exception is raised, or -1 if an exception is raised. (It is not possible to determine...
Read more >typing — Support for type hints — Python 3.11.1 documentation
It is possible to declare the return type of a callable without specifying ... The one exception to this is that a list...
Read more >Parsing arguments and building values — Python 3.11.1 ...
Parse the parameters of a function that takes both positional and keyword parameters into local variables. The keywords argument is a NULL -terminated...
Read more >What's New In Python 3.8 — Python 3.11.1 documentation
There is a new function parameter syntax / to indicate that some function parameters must be specified positionally and cannot be used as...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

fixed in v1.0.2
Thanks