Comments (5)
@llimllib: thanks for trying out Pyre :)
The error you're getting means that Pyre does not know about boto3
. Pyre has various ways of knowing about third-party libraries. A lot of them are defined in typeshed, which is shipped with Pyre itself. Apart from that you can tell Pyre where to look for them, e.g. by adding
"search_path": ["where/to/find/additional/python/files/or/stubs"],
to your .pyre_configuration
. You can also pass this with --search-path
or tell python to use your current $PYTHONPATH
during the lookup (with --preserve-pythonpath
).
Unfortunately, all of those options are currently not very well documented, see also #10
from pyre-check.
Anyway, here's a vote for making
--preserve-pythonpath
the default, who would not want that on?
We usually have lots of developers working on the same codebase. Getting them all to have a consistent environment setup on their machines is very difficult so we usually rely on storing a consistent set of options in a configuration file that is shared by everybody.
from pyre-check.
Would it make more sense to have unimported modules default to evaluating to Any
? That's the behavior I usually choose with mypy (--follow-imports=silent
is the relevant option I believe), and I think that's generally the sensible behavior if you're using libraries that don't have stubs available.
from pyre-check.
Ah! thanks for the quick response, I guess I'm surprised that a type checker is concerned about whether boto3 actually exists or not.
Anyway, here's a vote for making --preserve-pythonpath
the default, who would not want that on?
from pyre-check.
Maybe the default if there is no config file? Anyway, I found the error very confusing so I suspect others new to the project will too.
Thanks for your hard work on the tool, Iām using it because im excited for it.
from pyre-check.
Related Issues (20)
- Parsing failure [404]: f-string expression part cannot include a backslash HOT 1
- Pyre infers set-of-literals as set[str] rather than set[MyLiteral] HOT 1
- Null
- Ask for if also import pysa-filter for `sapp` when run `pyre init-pysa`
- Allow use of pyre_extensions in pyre playground, use newer typing_extensions
- Mutable attributes of classes should be invariant in subclasses. HOT 1
- Internal crash: Raised in src/string.ml HOT 11
- Pyre doesn't understand for-else statement HOT 2
- Is it possible to taint specific values of parameters? HOT 2
- Tainting Python Builtin Functions! How do we do this? HOT 1
- Module boto3 - Taint Propagation Issue HOT 3
- Context Manager - Taint Propagation Issue
- PySpark - Incompatible parameter type & Unsupported operand HOT 1
- [Pyre setup.sh] Terminal closes while building from source HOT 2
- Pysa tutorial not working HOT 4
- Find lambdas are not checked correctly
- Errors with recursive type aliases: "JSON is declared to have type `TypeAlias` but is used as type `UnionType`"
- pyre from PyPI can't find its typeshed directory HOT 1
- Update pyre-check.org/play to use Python 3.11 HOT 2
- [BUG] Check command exited with non-zero return code: 126. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
š Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ā¤ļø Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyre-check.