codemagic-ci-cd / cli-tools

Various utilities to managing Android and iOS app builds, code signing, and deployment.
https://codemagic.io/start/
GNU General Public License v3.0
235 stars 39 forks source link

Remove typing.Literal import #413

Closed priitlatt closed 2 weeks ago

priitlatt commented 2 weeks ago

Fixes #412.

PR #411 introduced a regression by using the following import statement:

from typing import Literal

This is because typing.Literal was added only in Python 3.8, and consequently this statement fails when run on Python 3.7.

As a workaround import Literal from typing_extensions module only when performing type checks as is done here for example.