Repository navigation
Remove copied parameter docs from Romani2025ERP._data_url - #1376
Open
dylanpulver wants to merge 1 commit into
Open
dylanpulver wants to merge 1 commit into
dylanpulver wants to merge 1 commit into
Conversation
_data_url(self) documented subject, path, force_update, update_path and verbose. Those five are the signature of BaseDataset's abstract _download_subject; _data_url takes only self. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Romani2025ERP._data_urlcarries a five-entryParameterssection:The method is
def _data_url(self) -> List[str]and its body isreturn [BRAINFORM_URL]. It takes none of those five.Where they came from is not a guess:
subject, path, force_update, update_path, verboseis exactly the signature ofBaseDataset._download_subject, the abstract method declared inmoabb/datasets/base.py, and the same five flow throughbids_pathsanddata_path. The section was pasted from that family.Romani2025ERPdoes not implement_download_subjectat all, so there is nothing in this class for those names to describe.Since numpydoc resolves entries by name, the section currently documents nothing. I removed it rather than renaming anything — there is no parameter to rename it to. The docstring keeps its prose and its
Returns, which are correct:If those five were meant to be added to
_data_urlrather than pasted into its docs by accident, then deleting the section is the wrong half of the fix — say so and I'll close this.Checks
python -c "import ast; ast.parse(...)"— exit 0.ast.get_docstringon_data_urlbefore and after: before, 5 documented names againstparams=['self']; after, noParameterssection and the prose andReturnsintact.ruff check --no-cache --output-format=concisewith the repo's own config (select = ["E","F","W","B","C4","I"], line-length 90) — output identical before and after, one pre-existing finding in both runs. Measured with the file stashed andgit status --porcelainasserted empty, and the baseline re-confirmed to still contain the pasted section.ruff format --check—1 file already formatted.I have not run
pytest: this is a docstring-only change to a private method, and the environment here has notorch. CI is the authority on the suite.Not changed
whats_newentry. CONTRIBUTING says to update it "if needed", and a private method's docstring is not user-visible behaviour — happy to add one if you'd prefer.Returns:heading has a trailing colon and a 8-dash underline, which is not quite numpydoc. I left it alone: it is a separate claim from this one, and fixing it would be a drive-by.nemar_*entries onBaseDatasetandCompoundDatasetdocumentingsessions_per_subject. I left all of them out of this PR. Several look like they need a judgement about intent rather than a deletion, and I would rather ask than sweep.🤖 Generated with Claude Code