From e13701d2a77b3e6e132c60486ab248179abb5209 Mon Sep 17 00:00:00 2001 From: Alexander Tikhonov Date: Sat, 23 Nov 2024 19:23:49 +0300 Subject: [PATCH] Change new Union syntax to the old one --- mashumaro/core/meta/types/unpack.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mashumaro/core/meta/types/unpack.py b/mashumaro/core/meta/types/unpack.py index f783d6a..b04f6b2 100644 --- a/mashumaro/core/meta/types/unpack.py +++ b/mashumaro/core/meta/types/unpack.py @@ -162,7 +162,7 @@ def _get_call_expr(self, spec: ValueSpec, method_name: str) -> str: class UnionUnpackerBuilder(AbstractUnpackerBuilder): def __init__(self, args: tuple[type, ...]): self.union_args = args - self.method_name: str | None = None + self.method_name: Optional[str] = None def get_method_prefix(self) -> str: return "union"