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

use Path class in add_eval_data of haystack.document_store.base.py #745

Merged
merged 2 commits into from
Jan 19, 2021

Conversation

Rob192
Copy link
Contributor

@Rob192 Rob192 commented Jan 19, 2021

Following PR #717, there was an issue on Windows file system paths. This PR aims at fixing this by adding the Path class from pathlib.

@Timoeller

Copy link
Member

@tholor tholor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good! Thanks for adding this @Rob192

I think there are more places in Haystack where we could make use of Path and eventually also then update the function signatures to support both types (e.g. filename: Union[str, Path]). However, we can tackle this in a later stage with separate PRs :)

Copy link
Member

@tholor tholor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

--

@tholor tholor merged commit 35dcf23 into deepset-ai:master Jan 19, 2021
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