diff --git a/app/core/views.py b/app/core/views.py index 1b1da934..ac65c472 100644 --- a/app/core/views.py +++ b/app/core/views.py @@ -2,7 +2,7 @@ from typing import Callable, List, Optional, Union from dataclasses import dataclass import datetime - +from typing import Union from flet import ( AlertDialog, Column, @@ -91,7 +91,7 @@ def __init__( color: Optional[str] = None, align: str = utils.TXT_ALIGN_LEFT, show: bool = True, - expand: bool | int | None = None, + expand: Optional[Union[bool, int]] = None, ): """Displays text formatted as a headline""" super().__init__( @@ -116,7 +116,7 @@ def __init__( color: Optional[str] = None, align: str = utils.TXT_ALIGN_LEFT, show: bool = True, - expand: bool | int | None = None, + expand: Optional[Union[bool, int]] = None, ): super().__init__( subtitle,