docs: Update lookup signature#3090
Conversation
This does two things, first it moves the required ``within`` argument to its own line - previously it was too easily overlooked. See change in bdd732d Second, it adds the ``default`` argument from 08e88e2 on PR snakemake#2907.
WalkthroughThe changes involve modifications to the Changes
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media? TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
|
There was a problem hiding this comment.
Actionable comments posted: 1
Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Files selected for processing (1)
- docs/snakefiles/rules.rst (1 hunks)
Additional comments not posted (1)
docs/snakefiles/rules.rst (1)
373-373: LGTM!The new optional
defaultparameter with default valueNODEFAULThas been documented accurately. This is not a breaking change.
| is_nrows: Optional[int], | ||
| within=None, |
There was a problem hiding this comment.
Update existing code calling lookup to provide the new required within parameter.
The within parameter is now required when calling lookup. It expects a Python mapping, pandas DataFrame, or pandas Series. Existing code that does not provide within will fail and needs to be updated.
The documentation update itself looks good and accurately reflects the signature change.
🤖 I have created a release *beep* *boop* --- ## [8.20.4](v8.20.3...v8.20.4) (2024-09-20) ### Bug Fixes * cache conda envs to fix performance regression introduced in #1300 ([#3093](#3093)) ([66600c4](66600c4)) * Flatten conda pip dependencies for report rule info ([#3085](#3085)) ([56a1f20](56a1f20)) * improve runtime complexity of post-job checkpoint handling ([#3096](#3096)) ([ba30781](ba30781)) ### Documentation * Clarify the lookup function docstring ([#3091](#3091)) ([94177d5](94177d5)) * Update lookup signature ([#3090](#3090)) ([655d6a1](655d6a1)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>



This does two things, first it moves the required
withinargument to its own line - previously it was too easily overlooked. See change in bdd732dSecond, it adds the
defaultargument from 08e88e2 on PR #2907.QC
docs/) is updated to reflect the changes or this is not necessary (e.g. if the change does neither modify the language nor the behavior or functionalities of Snakemake).Summary by CodeRabbit
withinparameter is now required for thelookupfunction.NODEFAULT, for thedefaultparameter, enhancing clarity on function usage.