question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Exception thrown when callback function uses Python3 return value declaration

See original GitHub issue

When 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:closed
  • Created 6 years ago
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
martinohanloncommented, Jul 23, 2017

fixed in v1.0.2

0reactions
martinohanloncommented, Jul 7, 2017

Thanks

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found