Skip to content

docs: Stop documenting two required FileOptions arguments as optional - #7121

Merged
shuchu merged 2 commits into
feast-dev:masterfrom
VenishPaneliya:docs-fileoptions-required-args
Nov 10, 2026
Merged

shuchu merged 2 commits into
feast-dev:masterfrom
VenishPaneliya:docs-fileoptions-required-args

Conversation

@VenishPaneliya

Copy link
Copy Markdown
Contributor

What this PR does / why we need it:

FileOptions.__init__ documents file_format and s3_endpoint_override as (optional), but all three arguments are positional with no defaults, so following the docstring and calling FileOptions(uri="data.parquet") raises TypeError. The class-level Attributes: block right above already lists the three without the marker.

These are the only two (optional) annotations in the Python SDK that name an argument without a default — out of 268 — so it reads as a slip rather than a convention.

Documentation only, no behaviour change. If you would rather the signature match the docstring, I am happy to give the two arguments None defaults instead; FileSource always passes all three, so either direction is backwards compatible.

Which issue(s) this PR fixes:

None filed.

Checks

  • I've made sure the tests are passing. — not ticked: the change is docstring text only and I was not able to run the SDK suite locally.
  • My commits are signed off (git commit -s)
  • My PR title follows conventional commits format

Testing Strategy

  • Unit tests
  • Integration tests

FileOptions.__init__ marks file_format and s3_endpoint_override as
"(optional)", but all three arguments are positional with no defaults,
so FileOptions(uri="data.parquet") raises TypeError. Drop the marker so
the docstring matches the signature; the class-level Attributes block
already lists the three without it.

Signed-off-by: VenishPaneliya <141703684+VenishPaneliya@users.noreply.github.com>
@VenishPaneliya
VenishPaneliya requested a review from a team as a code owner November 10, 2026 01:16

@shuchu shuchu left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@shuchu
shuchu merged commit 0811002 into feast-dev:master Nov 10, 2026
2 checks passed
shuchu added a commit to shuchu/feast that referenced this pull request Nov 11, 2026
…feast-dev#7121)

FileOptions.__init__ marks file_format and s3_endpoint_override as
"(optional)", but all three arguments are positional with no defaults,
so FileOptions(uri="data.parquet") raises TypeError. Drop the marker so
the docstring matches the signature; the class-level Attributes block
already lists the three without it.

Signed-off-by: VenishPaneliya <141703684+VenishPaneliya@users.noreply.github.com>
Co-authored-by: Shuchu Han <shuchu.han@gmail.com>
Signed-off-by: Shuchu Han <shuchu.han@gmail.com>
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