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

regression in type signature of UPath.rename #257

Closed
ap-- opened this issue Aug 27, 2024 · 1 comment · Fixed by #258
Closed

regression in type signature of UPath.rename #257

ap-- opened this issue Aug 27, 2024 · 1 comment · Fixed by #258
Assignees
Labels
bug 🐛 Something isn't working

Comments

@ap--
Copy link
Collaborator

ap-- commented Aug 27, 2024

with the release of v0.2.3 commit 93855d2 introduced a regression in the type signature of UPath.rename, causing mypy to complain. see: apache/airflow#41723

@ap-- ap-- added the bug 🐛 Something isn't working label Aug 27, 2024
@ap-- ap-- self-assigned this Aug 27, 2024
@ap--
Copy link
Collaborator Author

ap-- commented Aug 27, 2024

We'd need https://peps.python.org/pep-0728/ to type this correctly via TypedDicts. Need to introduce a unset default value for maxdepth and recursive to get this working as intended.

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.

1 participant