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

Formatargspec Warning in import line #3182

Open
nvenkat94 opened this issue Aug 7, 2023 · 0 comments
Open

Formatargspec Warning in import line #3182

nvenkat94 opened this issue Aug 7, 2023 · 0 comments

Comments

@nvenkat94
Copy link

We still facing that inspect has no attribute "Formatargspec". I think you were didn't consider about that.
I have changed that formatargspec into signature which was mentioning below.
Earlier Syntax Like This:

signature = inspect.formatargspec(regargs, varargs, varkwargs, defaults,
                                      formatvalue=lambda value: "")[1:-1]

Now Modified Like This:

signature = inspect.signature(regargs, varargs, varkwargs, defaults,
                                      formatvalue=lambda value: "")[1:-1]

Now there is no error while executing. But I want make sure is it right. Pls try to fix this issue in coming version.
I'm using nltk V3.8.1.
python V 3.8.
I think formatargspec has been deprecated Before 4 or 5years. But Still you are not fix that issue.

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

No branches or pull requests

1 participant