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

How do I use stub pyi files with pylint #5007

Closed
daltairwalter opened this issue Sep 14, 2021 · 2 comments
Closed

How do I use stub pyi files with pylint #5007

daltairwalter opened this issue Sep 14, 2021 · 2 comments
Labels
Documentation 📗 Duplicate 🐫 Duplicate of an already existing issue Question

Comments

@daltairwalter
Copy link

Question

I have stub pyi files and pylint doesn't seem to be using them.

I have tried renaming them to py and deleting the pyd files and this mostly works. One specific problem with this technique though is that I see the error "assignment-from-no-return" on functions.

As an example, if my .pyi file - renamed to .py has the following:
def getPlatform() -> str: ...

I see errors for "assignment-from-no-return" in other places for code like this:
platform = infoModule.getPlatform()

Is there a better way of using stub pyi files?

Documentation for future user

I expected to see a section heading about using stubs in the help - or for the stubs to just be used and work.

Additional context

No response

@daltairwalter daltairwalter added Documentation 📗 Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling Question labels Sep 14, 2021
@DetachHead
Copy link
Contributor

duplicate of #4987?

@Pierre-Sassoulas Pierre-Sassoulas removed the Needs triage 📥 Just created, needs acknowledgment, triage, and proper labelling label Nov 9, 2021
@Pierre-Sassoulas
Copy link
Member

Look like this one has better SEO but was created later. I'm going to close as duplicate and change the title of the other one. Thank you @DetachHead (Just curious are you participating in closember ?) !

@Pierre-Sassoulas Pierre-Sassoulas added the Duplicate 🐫 Duplicate of an already existing issue label Nov 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Documentation 📗 Duplicate 🐫 Duplicate of an already existing issue Question
Projects
None yet
Development

No branches or pull requests

3 participants