-
Notifications
You must be signed in to change notification settings - Fork 23
Mark secondary arguments as keyword-only #881
Copy link
Copy link
Open
Labels
debtCode quality improvement or decrease of technical debt.Code quality improvement or decrease of technical debt.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Milestone
Metadata
Metadata
Assignees
Labels
debtCode quality improvement or decrease of technical debt.Code quality improvement or decrease of technical debt.t-toolingIssues with this label are in the ownership of the tooling team.Issues with this label are in the ownership of the tooling team.
Type
Fields
Give feedbackNo fields configured for issues without a type.
Reshape function/method signatures across the public API so that secondary parameters must be passed as keyword arguments. Primary "subject" arguments stay positional.
This mirrors what was done in the client: apify/apify-client-python#766.
Why
Keyword-only parameters at API boundaries make call sites self-documenting and prevent breakage when new options are added between existing arguments.