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

Fix support for string paths #77

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft

Fix support for string paths #77

wants to merge 5 commits into from

Conversation

thilp
Copy link
Member

@thilp thilp commented Oct 20, 2021

When transformer is used as a library, allow to provide input HAR paths as strings as well as Path instances, as already documented in type signatures.

Closes #75.

Types of Changes

What types of changes does your code introduce? Keep the ones that apply:

  • Bug fix (non-breaking change which fixes an issue)

Signed-off-by: Thibaut Le Page <[email protected]>
It looks like older Pendulum versions don’t work well with a recent
Poetry.

Signed-off-by: Thibaut Le Page <[email protected]>
Top-level functions accept LaxPath instances, which are unions of Path
and str. However, Scenario.from_path expects only a Path (not a str) and
is called by _dump_as_lines (which uses LaxPath) without first
converting potential strings to Path.

Reported in #75.

Signed-off-by: Thibaut Le Page <[email protected]>
Signed-off-by: Thibaut Le Page <[email protected]>
@zincr
Copy link

zincr bot commented Oct 20, 2021

🤖 zincr found 1 problem , 1 warning

❌ Approvals
ℹ️ Large Commits
✅ Specification
✅ Dependency Licensing

Details on how to resolve are provided below


Approvals

All proposed changes must be reviewed by project maintainers before they can be merged

Not enough people have approved this pull request - please ensure that 1 additional user, who have not contributed to this pull request approve the changes.

  • ✅ Approved by PR author @thilp
  • ❌ 1 additional approval needed
     

Large Commits

Checks all commits for large additions to a single file. Large commits should be reviewed more carefully for potential copyright and licensing issues

This file contains a substantial change, please review to determine if the change comes from an external source and if there are any copyright or licensing issues to be aware of

  • ℹ️ poetry.lock had +100 lines of code changed in a single commit
    Please review this file to determine the source of this change
     

@thilp thilp changed the title Issue 75 Fix support for string paths Oct 20, 2021
@thilp thilp marked this pull request as ready for review October 20, 2021 20:00
@thilp thilp marked this pull request as draft October 20, 2021 20:05
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.

Could not convert HAR using library
1 participant