Skip to content

Use docstring_substitution for strategy and example in DataFrameModel - #2248

Merged
cosmicbboy merged 1 commit into
unionai-oss:mainfrom
terryzm1:docs/add-docstring-substitution-strategy-example
Apr 4, 2026
Merged

cosmicbboy merged 1 commit into
unionai-oss:mainfrom
terryzm1:docs/add-docstring-substitution-strategy-example

Conversation

@terryzm1

Copy link
Copy Markdown
Contributor

Resolve the TODO comments in DataFrameModel.strategy() and DataFrameModel.example() by applying @docstring_substitution with BaseSchema docstrings. This follows the same pattern already used by validate() and the framework-specific models (pandas, polars, ibis, pyspark).

All existing tests pass, including the pyspark test_docstring_substitution tests.

Replace hardcoded docstrings with @docstring_substitution using
BaseSchema.strategy and BaseSchema.example, resolving the TODO
comments. This follows the same pattern already used by validate()
and the framework-specific models (pandas, polars, ibis, pyspark).

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Terry Zhang <terryzhang@Terrys-MacBook-Air.local>
@codecov

codecov Bot commented Apr 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.96%. Comparing base (48ccf83) to head (042720e).
⚠️ Report is 167 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2248   +/-   ##
=======================================
  Coverage   83.95%   83.96%           
=======================================
  Files         138      138           
  Lines       11102    11104    +2     
=======================================
+ Hits         9321     9323    +2     
  Misses       1781     1781           

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@cosmicbboy
cosmicbboy merged commit bd2b43c into unionai-oss:main Apr 4, 2026
291 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