8000 Support pathlib.Path in edit filename · Issue #2869 · pallets/click · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Support pathlib.Path in edit filename #2869

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

Open
davetapley opened this issue Mar 10, 2025 · 0 comments
Open

Support pathlib.Path in edit filename #2869

davetapley opened this issue Mar 10, 2025 · 0 comments
Labels

Comments

@davetapley
Copy link

Would you welcome a PR to avoid this?

Argument of type "Path" cannot be assigned to parameter "filename" of type "str | None" in function "edit"
  Type "Path" is not assignable to type "str | None"
    "Path" is not assignable to "str"
    "Path" is not assignable to "None"Pylance[reportArgumentType](https://github.com/microsoft/pyright/blob/main/docs/configuration.md#reportArgumentType)

Easy workaround with:

click.edit(filename=str(export_common.path))

but would be nice if didn't need str.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants
0