diff --git a/buildrunner/config_model.py b/buildrunner/config_model.py index 4d91897f..1fd68f5b 100644 --- a/buildrunner/config_model.py +++ b/buildrunner/config_model.py @@ -6,7 +6,7 @@ with the terms of the Adobe license agreement accompanying it. """ -from typing import Dict, List, Optional, Set +from typing import Dict, List, Optional, Set, Union from pydantic import BaseModel # pylint: disable=no-name-in-module @@ -29,8 +29,7 @@ class StepPushDict(BaseModel): class Step(BaseModel): """ Step model """ build: Optional[StepBuild] - # pylint: disable=unsubscriptable-object,unsupported-binary-operation - push: Optional[StepPushDict | List[str | StepPushDict] | str] + push: Optional[Union[StepPushDict, List[Union[str, StepPushDict]], str]] def is_multi_platform(self): """ @@ -65,8 +64,7 @@ def has_multi_platform_build(self): return False def validate_push(self, - # pylint: disable=unsubscriptable-object,unsupported-binary-operation - push: StepPushDict | list[str | StepPushDict] | str, + push: Union[StepPushDict, list[Union[str, StepPushDict]], str], mp_push_tags: Set[str], step_name: str, update_mp_push_tags: bool = True):