-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pyaarlo-0.8.0.17] Python 3.7 is no longer the minimum python version #178
Comments
Can we use |
Sorry. I didn't notice that. I'll take a look
…On Tue, Feb 18, 2025, 01:35 chief-swole ***@***.***> wrote:
fastapi/typer#371 (comment)
<fastapi/typer#371 (comment)>
| was added in python 3.10, so not available in python 3.8.
def test(flag: bool | None = typer.Option(None, "--flag", "-f", help="A
flag")):
Either you can use typing.Union or you can use string for type
annotation, like:
def test(flag: "bool | None" = typer.Option(None, "--flag", "-f", help="A
flag")):
Can we use typing.Union instead? 3.10 is a huge jump as a min version.
—
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALHJU6VNRDVKSGZLDW3YHAL2QLICVAVCNFSM6AAAAABXK2OU26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRUG4ZTONRRGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
[image: chief-swole]*chief-swole* left a comment (twrecked/pyaarlo#178)
<#178 (comment)>
fastapi/typer#371 (comment)
<fastapi/typer#371 (comment)>
| was added in python 3.10, so not available in python 3.8.
def test(flag: bool | None = typer.Option(None, "--flag", "-f", help="A
flag")):
Either you can use typing.Union or you can use string for type
annotation, like:
def test(flag: "bool | None" = typer.Option(None, "--flag", "-f", help="A
flag")):
Can we use typing.Union instead? 3.10 is a huge jump as a min version.
—
Reply to this email directly, view it on GitHub
<#178 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/ALHJU6VNRDVKSGZLDW3YHAL2QLICVAVCNFSM6AAAAABXK2OU26VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDMNRUG4ZTONRRGQ>
.
You are receiving this because you are subscribed to this thread.Message
ID: ***@***.***>
|
Can you try the master branch? I just pushed a possible fix. |
In the
setup.py
, the minimum python version is declared to be 3.7:however, when run on Python 3.7, I get this error:
The text was updated successfully, but these errors were encountered: