Skip to content
New issue

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

Replace the deprecated function getargspec to getfullargspec #406

Conversation

hicycle
Copy link
Contributor

@hicycle hicycle commented Sep 15, 2021

The inspect.getargspec is deprecated since python 3.0. With the current code, we can't set some library(e.g. SeleniumLibrary) as SharedLibrary due to below error:

ValueError: Function has keyword-only arguments or annotations, use getfullargspec() API which can support them

inspect.getfullargspec is fully compatible with the pabot use case.

@hicycle
Copy link
Contributor Author

hicycle commented Sep 17, 2021

SeleniumLibrary introduce typehint since python 3.5, inspect.getfullargspec must be used to set SeleniumLibrary as SharedLibrary

@mkorpela mkorpela merged commit 0c7b814 into mkorpela:master Oct 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants