GithubHelp home page GithubHelp logo

Comments (3)

sinancepel avatar sinancepel commented on April 20, 2024

@gnprice by default, pyre only pulls in the stdlib stubs from typeshed. You can add the third party directory to your .pyre_configuration by adding the line `"search_path": ["/path/to/typeshed/third_party"]. I'll see if we can make the documentation clearer with respect to this.

from pyre-check.

PeterJCLaw avatar PeterJCLaw commented on April 20, 2024

@sinancepel I've hit (and was about to report, but found this issue first) errors from pyre indicating that it's not finding third party stubs from typeshed. To me this is quite surprising, as I'd very much expect those stubs to be being found by default.

Since most users of pyre will be installing via pip install pyre-check, they most likely won't know where their typeshed is without looking for it. I see this as a good motivation for making it easier to enable use of typeshed third party stubs.

Would you be open to either or both:

  • making it so that pyre picks up the third party stubs from the typeshed by default
  • providing an option which enables third party stubs to be picked up from the typeshed (perhaps --[no-]third-party-stubs-from-typeshed?)

I'd also be curious to understand why the default is what it is (as noted, I find it surprising that the default is to ignore part of the typeshed), so maybe covering that explicitly in the docs would be useful.

Meta: I'm assuming from this issue having been closed that the documentation change you alluded to has happened. If not, I'd be happy to review whether this is needed after that clarification is in place.

from pyre-check.

dark avatar dark commented on April 20, 2024

The main reason to initially support only stdlib was simplicity. As the project grows, we will start looking into 3rd-party as well.
As a matter of fact, I am working on this feature, so I am going to reopen this issue and self-assign it for clarity.

from pyre-check.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.