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

Fixes httpcore import in httpx_ws/_api.py #36

Merged
merged 6 commits into from
Jul 6, 2023

Conversation

saforem2
Copy link
Contributor

@saforem2 saforem2 commented Jul 5, 2023

Fixes #35

@frankie567
Copy link
Owner

Thank you @saforem2 for the fix!

So, it seems that we also need to do that here:

from httpcore.backends.base import AsyncNetworkStream

I would also like to bump the dependency in pyproject.toml: httpcore>=0.17.3,<0.18 So we're sure everyone is on the same level + avoid future breaking changes.

@saforem2
Copy link
Contributor Author

saforem2 commented Jul 6, 2023

should be good to go 🚀

httpx_ws/transport.py Outdated Show resolved Hide resolved
@saforem2
Copy link
Contributor Author

saforem2 commented Jul 6, 2023

ope, missed the import in tests/test_api.py

83bfdb3 should fix and resolve failing tests

@frankie567
Copy link
Owner

Lol, this one was trickier than expected! Good to go, now. Thank you for your efforts 🙏

@all-contributors add @saforem2 for bug

@frankie567 frankie567 merged commit d868919 into frankie567:main Jul 6, 2023
5 checks passed
@allcontributors
Copy link
Contributor

@frankie567

I couldn't determine any contributions to add, did you specify any contributions?
Please make sure to use valid contribution names.

I've put up a pull request to add @saforem2! 🎉

T-256 pushed a commit to T-256/httpx-ws that referenced this pull request Jun 5, 2024
* Fixes `httpcore` import in `httpx_ws/_api.py`

* Replace `httpcore.backends` import in `httpx_ws/_api.py`

* Replace `httpcore.backends` import in `httpx_ws/transport.py`

* Bump `httpcore` in `pyproject.toml`

* Remove `NetworkStream` import from `transport.py`

* Fix `httpcore` import in `tests/test_api.py`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ModuleNotFoundError: No module named 'httpcore.backends'
2 participants