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

BUG: Coerce GenericSeq path attributes to str #237

Merged
merged 1 commit into from Mar 20, 2023

Conversation

NickleDave
Copy link
Collaborator

@NickleDave NickleDave commented Mar 20, 2023

Hoping this will fix CI failures.

We coerce the annot_path and notated_path attributes of the pandera GenericSeq schema to be strings -- apparently they get passed in as pathlib.Path on CI somehow? I can't reproduce the error locally. But coercing them to string seems to fix it. And it makes sense in general to force these attributes to be strings since there's no pathlib dtype for pandas DataFrames (without using a library like pandas-pathlib)

Add `coerce=True` to the `annot_path` and `notated_path`
attributes of the GenericSeq pandera schema,
to force them to be converted to strings.

This fixes failures on CI where I guess these
get passed in as Path classes even though when I run
tests locally they are not and tests pass?
Seems like a good idea to force them to be string anyway.
@codecov-commenter
Copy link

codecov-commenter commented Mar 20, 2023

Codecov Report

Patch and project coverage have no change.

Comparison is base (970be2f) 94.10% compared to head (c1ef7a5) 94.10%.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #237   +/-   ##
=======================================
  Coverage   94.10%   94.10%           
=======================================
  Files          41       41           
  Lines        1510     1510           
=======================================
  Hits         1421     1421           
  Misses         89       89           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@NickleDave NickleDave force-pushed the fix-generic-seq-pandera-error branch from c1ef7a5 to d9a75b6 Compare March 20, 2023 19:20
@NickleDave NickleDave merged commit 64fcd8d into main Mar 20, 2023
8 of 11 checks passed
@NickleDave NickleDave deleted the fix-generic-seq-pandera-error branch March 20, 2023 19:26
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