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

add compatibility with pathlib.Path type from stdlib. #97

Merged
merged 2 commits into from
Apr 24, 2024

Conversation

publicmatt
Copy link
Contributor

I believe this fixes the issue I opened: #96

It adds type hinting pathlib.Path to each of data parameter, and adds a Path to the isinstance check before calling open() on the path.

@tr11
Copy link
Owner

tr11 commented Apr 8, 2024

Can you also add tests to ensure coverage? Here are the instructions on how to do that. Otherwise, I can take a look at it next weekend.

@publicmatt
Copy link
Contributor Author

Can you also add tests to ensure coverage? Here are the instructions on how to do that. Otherwise, I can take a look at it next weekend.

I've installed hatch and was able to run the tests. Can you explain some of the errors I'm seeing? Do I have to run ruff or mypy on the source to sort import and fix line lengths?

@tr11 tr11 merged commit b0fed03 into tr11:main Apr 24, 2024
6 checks passed
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.

2 participants