From 7db08ad27632e64d8cfdab451b2ac57af7c37ccf Mon Sep 17 00:00:00 2001 From: "m.bazire" Date: Mon, 20 Mar 2023 16:56:44 +0100 Subject: [PATCH] :bug: Typing - Fix Registrable Type to be compatible with py 39 --- magicparse/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/magicparse/__init__.py b/magicparse/__init__.py index 4b9370c..cc43a53 100644 --- a/magicparse/__init__.py +++ b/magicparse/__init__.py @@ -26,7 +26,7 @@ def parse( return schema_definition.parse(data) -Registrable = Schema | Transform +Registrable = Union[Schema, Transform] def register(items: Union[Registrable, List[Registrable]]) -> None: