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

allow broader type for toml file path value #243

Merged
merged 2 commits into from
Oct 27, 2022

Conversation

hoefling
Copy link
Contributor

Since tomlkit supports Python 3.6 and onwards now, os.PathLike can be supported as the additional type for path argument in TOMLFile constructor. This PR adds the necessary bits.

Signed-off-by: oleg.hoefling oleg.hoefling@gmail.com

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
@frostming frostming merged commit cb822da into python-poetry:master Oct 27, 2022
capuanob pushed a commit to capuanob/tomlkit that referenced this pull request Mar 1, 2023
* allow broader type for toml file path value

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

* reuse strpath from typeshed

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>

Signed-off-by: oleg.hoefling <oleg.hoefling@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants