Skip to content
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

Typer 0.12.2 breaks test suite #12617

Closed
4 tasks done
aaazzam opened this issue Apr 8, 2024 · 6 comments · Fixed by fastapi/typer#796
Closed
4 tasks done

Typer 0.12.2 breaks test suite #12617

aaazzam opened this issue Apr 8, 2024 · 6 comments · Fixed by fastapi/typer#796
Labels
bug Something isn't working

Comments

@aaazzam
Copy link
Collaborator

aaazzam commented Apr 8, 2024

First check

  • I added a descriptive title to this issue.
  • I used the GitHub search to find a similar issue and didn't find it.
  • I searched the Prefect documentation for this issue.
  • I checked that this issue is related to Prefect and not one of its dependencies.

Bug summary

Typer 0.12.2 breaks OSS test suite, specifically test_pluralized_subcommands_have_multiple_valid_invocations in our cli tests.

Specifically fastapi/typer#567, which appears to build a list of subcommands for better rendering but in doing so calls max instead of length on an empty array, which throws an error.

Reproduction

run the test suite on 0.12.2

Error

No response

Versions

Version:             2.16.9+17.g3feaafd00.dirty
API version:         0.8.4
Python version:      3.11.8
Git commit:          3feaafd0
Built:               Mon, Apr 8, 2024 1:17 PM
OS/Arch:             darwin/arm64
Profile:             staging
Server type:         cloud

Additional context

No response

@svlandeg
Copy link

svlandeg commented Apr 9, 2024

Sorry about this! I think fastapi/typer#796 will fix things again.

@aaazzam
Copy link
Collaborator Author

aaazzam commented Apr 9, 2024 via email

@tiangolo
Copy link

tiangolo commented Apr 9, 2024

Typer 0.12.3 just released 🚀

Thanks @svlandeg for the fix!

@aaazzam
Copy link
Collaborator Author

aaazzam commented Apr 9, 2024

🙇 @svlandeg and @tiangolo

@svlandeg
Copy link

svlandeg commented Apr 9, 2024

just need to figure out whether I need to exclude it in perpetuity or not

It's up to you, of course, but if this bug was only breaking your test suite I think the new release should fix that for you, as the test suite will always install the latest. Other than that, I'd expect this bug to show up only in edge cases, so I'm not sure it's worth yanking for.

@zhen0
Copy link
Member

zhen0 commented Apr 12, 2024

@aaazzam - since this is fixed in Typer 0.12.3, I'm closing this issue. Feel free to let me know if you want it re-opened.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants