Repository navigation
doc: correct two parameter docstrings that disagree with their signatures - #6586
Open
VenishPaneliya wants to merge 1 commit into
Open
VenishPaneliya wants to merge 1 commit into
VenishPaneliya wants to merge 1 commit into
Conversation
…ures NotebookJobStep documents a sagemaker_session constructor argument it does not accept; the attribute is assigned from the step compilation context in to_request(), so passing the keyword raises TypeError. ModelBuilder.optimize documents model_name as defaulting to None with a unique name generated, but the signature defaults to "optimize_model", and the unique-name fallback only runs when model_name is falsy.
VenishPaneliya
requested a deployment
to
manual-approval
November 14, 2026 18:35 — with
GitHub Actions
Waiting
VenishPaneliya
requested a deployment
to
manual-approval
November 14, 2026 18:35 — with
GitHub Actions
Waiting
VenishPaneliya
requested a deployment
to
manual-approval
November 14, 2026 18:35 — with
GitHub Actions
Waiting
This branch is waiting to be 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.
Two rendered docstrings disagree with the signature they describe.
NotebookJobStep.__init__documents asagemaker_sessionargument. It is not in the signature —self.sagemaker_sessionis assigned from the step compilation context into_request()— so passing the keyword raisesTypeError. Removed the entry.ModelBuilder.optimizedocumentsmodel_nameas(Default: None)with "a unique name will be generated". The signature default is"optimize_model", and themodel_name or f"model-{uuid}"fallback only fires whenmodel_nameis falsy, so neither half holds for a default call. Corrected the stated default and kept the generated-name behaviour documented for an explicitNone.Docstrings only; no behaviour change. Both classes are exported from their packages and rendered by the
automodule ... :members:blocks indocs/api/.I also looked at
ModelBuilder.register, whereapproval_statusis documented as defaulting to"PendingManualApproval"against aNonesignature default. That one is correct as written —get_model_package_argsdrops theNoneandcreate_model_package_from_containersapplies that value — so I left it alone.