Skip to content

Commit

Permalink
Change new Union syntax to the old one
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatal1ty committed Nov 23, 2024
1 parent 55354a4 commit e13701d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mashumaro/core/meta/types/unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit e13701d

Please sign in to comment.