fbt: Use union for old py (#2685)

This commit is contained in:
MX 2023-05-21 20:50:38 +03:00 committed by GitHub
parent d062ce73d7
commit d9fc408d96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
import os
from dataclasses import dataclass, field
from enum import Enum
from typing import Callable, List, Optional, Tuple
from typing import Callable, List, Optional, Tuple, Union
class FlipperManifestException(Exception):
@ -56,7 +56,7 @@ class FlipperApplication:
# .fap-specific
sources: List[str] = field(default_factory=lambda: ["*.c*"])
fap_version: str | Tuple[int] = "0.1"
fap_version: Union[str, Tuple[int]] = "0.1"
fap_icon: Optional[str] = None
fap_libs: List[str] = field(default_factory=list)
fap_category: str = ""