Skip to content

Commit 8b77faa

Browse files
docs: drop Optional from the regexp_instr arguments
Same change the review asked for on the other four regexp functions. The signature already marks these parameters optional with a None default, so the Args text no longer repeats it and the family reads the same way. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 593e858 commit 8b77faa

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎python/datafusion/functions/__init__.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1952,10 +1952,10 @@ def regexp_instr(
19521952
Args:
19531953
values: Data to search for the regular expression match.
19541954
regex: Regular expression to search for.
1955-
start: Optional position to start the search (the first position is 1).
1956-
n: Optional occurrence of the match to find (the first occurrence is 1).
1957-
flags: Optional regular expression flags to control regex behavior.
1958-
sub_expr: Optionally capture group position instead of the entire match.
1955+
start: Position to start the search (the first position is 1).
1956+
n: Occurrence of the match to find (the first occurrence is 1).
1957+
flags: Flags to control regex behavior.
1958+
sub_expr: Capture group position instead of the entire match.
19591959
19601960
Examples:
19611961
>>> ctx = dfn.SessionContext()

0 commit comments

Comments
 (0)