Skip to content

Using typeshed stubs instead of dependencies  #9574

@xrmx

Description

@xrmx

Question

Would it be possible (or even make sense) to use to use the stubs from typeshed instead of the real libraries in pylint checks?

import requests

requests.get("https:")

returns

foo.py:3:0: W3101: Missing timeout argument for method 'requests.get' can cause your program to hang indefinitely (missing-timeout)

with requests installed but nothing with just types-requests.

Documentation for future user

No idea, it would be nice to have an example in the tutorial using a third party library and explicitly saying you need to install it in order to provide more checks.

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs decision 🔒Needs a decision before implemention or rejectionNeeds design proposal 🔒This is a huge feature, some discussion should happen before a PR is proposedProposal 📨

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions