Repository navigation
docs: Stop documenting two required FileOptions arguments as optional - #7121
Merged
shuchu merged 2 commits intoNov 10, 2026
Merged
Conversation
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>
This was referenced Nov 10, 2026
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>
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.
What this PR does / why we need it:
FileOptions.__init__documentsfile_formatands3_endpoint_overrideas(optional), but all three arguments are positional with no defaults, so following the docstring and callingFileOptions(uri="data.parquet")raisesTypeError. The class-levelAttributes: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
Nonedefaults instead;FileSourcealways passes all three, so either direction is backwards compatible.Which issue(s) this PR fixes:
None filed.
Checks
git commit -s)Testing Strategy