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

Fix import statement in example code #56

Merged
merged 2 commits into from
Jun 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/docs/en/integrations/1_integrations-index.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ your application.

Most HTTP frameworks have built-in lifecycle hooks for this.

=== "Fastapi"
=== "FastAPI"
!!! tip
If you want to use **Propan** in conjunction with **Facetapi**, perhaps you should use a special
If you want to use **Propan** in conjunction with **FastAPI**, perhaps you should use a special
[plugin](../2_fastapi-plugin/)

```python hl_lines="6 13 15 18-20"
Expand Down Expand Up @@ -45,4 +45,4 @@ However, even if such a hook is not provided, you can do it yourself.
=== "Tornado"
```python hl_lines="6 9-11 31-35"
{!> docs_src/integrations/http_frameworks_integrations/tornado.py [ln:5-43]!}
```
```
4 changes: 2 additions & 2 deletions docs/docs/en/rabbit/2_exchanges.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ To declare an `Exchange` with all parameters in `Propan`, a special class `propa
You can use it both when receiving messages and sending them:

```python hl_lines="5 10"
import from propan.brokers.rabbit RabbitBroker, RabbitExchange
from propan.brokers.rabbit import RabbitBroker, RabbitExchange

broker = RabbitBroker()

Expand Down Expand Up @@ -35,4 +35,4 @@ And arguments to bind current exchange to another one

* `bind_to`: RabbitExchange | None = None - parent exchange to bind
* `bind_arguments`: dict[str, Any] | None = None - arguments to header exchange routing
* `routing_key`: str = "" - routing key for connecting to exchange
* `routing_key`: str = "" - routing key for connecting to exchange