Skip to content

Commit 2b1c714

Browse files
authored
Merge branch 'main' into doc-2220
2 parents bece422 + f8d5e56 commit 2b1c714

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

docs/docs/en/getting-started/serialization/decoder.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Alternatively, you can reuse the original decoder function with the following si
6666

6767
=== "AIOKafka"
6868
```python
69-
from types import Callable, Awaitable
69+
from typing import Callable, Awaitable
7070
from faststream.types import DecodedMessage
7171
from faststream.kafka import KafkaMessage
7272

@@ -79,7 +79,7 @@ Alternatively, you can reuse the original decoder function with the following si
7979

8080
=== "Confluent"
8181
```python
82-
from types import Callable, Awaitable
82+
from typing import Callable, Awaitable
8383
from faststream.types import DecodedMessage
8484
from faststream.confluent import KafkaMessage
8585

@@ -92,7 +92,7 @@ Alternatively, you can reuse the original decoder function with the following si
9292

9393
=== "RabbitMQ"
9494
```python
95-
from types import Callable, Awaitable
95+
from typing import Callable, Awaitable
9696
from faststream.types import DecodedMessage
9797
from faststream.rabbit import RabbitMessage
9898

@@ -105,7 +105,7 @@ Alternatively, you can reuse the original decoder function with the following si
105105

106106
=== "NATS"
107107
```python
108-
from types import Callable, Awaitable
108+
from typing import Callable, Awaitable
109109
from faststream.types import DecodedMessage
110110
from faststream.nats import NatsMessage
111111

@@ -118,7 +118,7 @@ Alternatively, you can reuse the original decoder function with the following si
118118

119119
=== "Redis"
120120
```python
121-
from types import Callable, Awaitable
121+
from typing import Callable, Awaitable
122122
from faststream.types import DecodedMessage
123123
from faststream.redis import RedisMessage
124124

docs/docs/en/getting-started/serialization/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ Before the message reaches your subscriber, **FastStream** applies two functions
2121
At this stage, **FastStream** serializes an incoming message from the broker's framework into a general format called - **StreamMessage**. During this stage, the message body remains in the form of raw bytes.
2222

2323
!!! warning ""
24-
This stage is closely related to the features of the broker used, and in most cases, redefining it is not necessary.
24+
This stage is closely related to the features of the used broker, and in most cases, redefining it is not necessary. Redefine it, only if you know what you are doing.
2525

26-
The parser declared at the `broker` level will be applied to all subscribers. The parser declared at the `subscriber` level is applied only to that specific subscriber and overrides the `broker' parser if specified.
26+
The parser declared at the `broker` level will be applied to all subscribers. The parser declared at the `subscriber` level is applied only to that specific subscriber and overrides the `broker`'s parser if specified.
2727

2828
### Message Decoding
2929

docs/docs/en/getting-started/serialization/parser.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Alternatively, you can reuse the original parser function with the following sig
6969

7070
=== "AIOKafka"
7171
```python
72-
from types import Callable, Awaitable
72+
from typing import Callable, Awaitable
7373
from faststream.kafka import ConsumerRecord, KafkaMessage
7474

7575
async def parser(
@@ -82,7 +82,7 @@ Alternatively, you can reuse the original parser function with the following sig
8282
=== "Confluent"
8383
```python
8484
from confluent_kafka import Message
85-
from types import Callable, Awaitable
85+
from typing import Callable, Awaitable
8686
from faststream.confluent import KafkaMessage
8787

8888
async def parser(
@@ -94,7 +94,7 @@ Alternatively, you can reuse the original parser function with the following sig
9494

9595
=== "RabbitMQ"
9696
```python
97-
from types import Callable, Awaitable
97+
from typing import Callable, Awaitable
9898
from aio_pika import IncomingMessage
9999
from faststream.rabbit import RabbitMessage
100100

@@ -107,7 +107,7 @@ Alternatively, you can reuse the original parser function with the following sig
107107

108108
=== "NATS"
109109
```python
110-
from types import Callable, Awaitable
110+
from typing import Callable, Awaitable
111111
from nats.aio.msg import Msg
112112
from faststream.nats import NatsMessage
113113

@@ -120,7 +120,7 @@ Alternatively, you can reuse the original parser function with the following sig
120120

121121
=== "Redis"
122122
```python
123-
from types import Callable, Awaitable
123+
from typing import Callable, Awaitable
124124
from faststream.redis import RedisMessage
125125
from faststream.redis.message import PubSubMessage
126126

0 commit comments

Comments
 (0)