Skip to content

Commit

Permalink
Rename _unpack_with_annotated_serialization_strategy
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Feb 13, 2023
1 parent 6295eab commit 4b4cc4e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions mashumaro/core/meta/types/pack.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
register = PackerRegistry.register


def _pack_with_generic_serialization_strategy(
def _pack_with_annotated_serialization_strategy(
spec: ValueSpec,
strategy: SerializationStrategy,
) -> Expression:
Expand Down Expand Up @@ -120,7 +120,7 @@ def get_overridden_serialization_method(
elif isinstance(strategy, SerializationStrategy):
if strategy.__use_annotations__ or is_generic(type(strategy)):
return ExpressionWrapper(
_pack_with_generic_serialization_strategy(
_pack_with_annotated_serialization_strategy(
spec=spec,
strategy=strategy,
)
Expand Down
4 changes: 2 additions & 2 deletions mashumaro/core/meta/types/unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@
register = UnpackerRegistry.register


def _unpack_with_generic_serialization_strategy(
def _unpack_with_annotated_serialization_strategy(
spec: ValueSpec,
strategy: SerializationStrategy,
) -> Expression:
Expand Down Expand Up @@ -132,7 +132,7 @@ def get_overridden_deserialization_method(
elif isinstance(strategy, SerializationStrategy):
if strategy.__use_annotations__ or is_generic(type(strategy)):
return ExpressionWrapper(
_unpack_with_generic_serialization_strategy(
_unpack_with_annotated_serialization_strategy(
spec=spec,
strategy=strategy,
)
Expand Down

0 comments on commit 4b4cc4e

Please sign in to comment.