Skip to content

Commit

Permalink
fix: improving typing in encoder
Browse files Browse the repository at this point in the history
  • Loading branch information
Étienne Corbillé authored and etiennecrb committed Jul 10, 2024
1 parent 6607931 commit bdd1ba2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion remoulade/encoder.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def decode(self, data: bytes) -> MessageData:
actor_fn = get_broker().get_actor(actor_name).fn

# Retrieve the Pydantic schemas from typing
schemas_by_param_name = {}
schemas_by_param_name: Dict[str, "TypeAdapter"] = {}
for param_name, type_hint in get_type_hints(actor_fn).items():
schemas_by_param_name[param_name] = TypeAdapter(
Annotated[
Expand Down

0 comments on commit bdd1ba2

Please sign in to comment.