Comments (4)
http_client.call
returns a httpx.Response
which is in some cases enhanced with a _maybe_parsed_body
. It's a bit of a hack which was really useful when we still used requests
, and simplified the code a lot, but when we switched to using httpx
and did some more changes, it ended up being used only in one method, when fetching a key-value store record body. So now we could put the "maybe" response parsing into that method, instead of having it in the http_client
, to have a better separation of concerns, and less hacks.
from apify-client-python.
My IDE was not able to recognize that, instead it raised an accessing of non-existing field error. The self.http_client.call
is annotated to return httpx.Response
object. So it might be the source of the problem.
from apify-client-python.
Yeah, that's probably it. I wonder how this ever passed lint without a #noqa
comment 🤷
from apify-client-python.
Yeah, that's probably it. I wonder how this ever passed lint without a #noqa comment 🤷
I think because accessing fields is checked by Mypy. That's the reason why there is # type: ignore
.
from apify-client-python.
Related Issues (20)
- Creating Actor from Template missing package.json HOT 2
- Get max_no_of_posts using insta_posts_scraper HOT 1
- Start using apify-shared for general consts and utils
- Remove underscore prefix from objects that are not private
- Add actor reboot method to the `RunClient`
- Unify indentation in configuration files HOT 6
- Implement Store API endpoints HOT 1
- Not possible to add maxItems parameter. HOT 1
- Save image cache for a client HOT 2
- Add API endpoint for validating Actor input
- Move `apify_client._errors` to `apify_client.errors`
- Migrate to Ruff (linter & formatter)
- Rename identifiers which shadows a builtin attribute
- Delete the re-imports in the `consts.py` module from the `apify-shared`
- Remove `__all__` from all `__init__.py` HOT 1
- Replace the usage of `Any` with generic types
- Migrate to Poetry for packaging and dependency management #156
- `ApifyApiError` raised when passing list of strings in `.get_items_as_bytes()` HOT 2
- Replace relative imports rather with absolute ones
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 apify-client-python.