Skip to content

Commit 593e858

Browse files
Drop Optional from the argument descriptions
Per review: the signature already says these are optional, and unlike the docstring itself that free text cannot be tested for staying accurate.
1 parent 9ec1b96 commit 593e858

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

python/datafusion/functions/__init__.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1764,7 +1764,7 @@ def regexp_like(
17641764
Args:
17651765
string: Data to test against the regular expression.
17661766
regex: Regular expression to search for.
1767-
flags: Optional regular expression flags to control regex behavior.
1767+
flags: Flags to control regex behavior.
17681768
17691769
Examples:
17701770
>>> ctx = dfn.SessionContext()
@@ -1805,7 +1805,7 @@ def regexp_match(
18051805
Args:
18061806
string: Data to match against the regular expression.
18071807
regex: Regular expression to search for.
1808-
flags: Optional regular expression flags to control regex behavior.
1808+
flags: Flags to control regex behavior.
18091809
18101810
Examples:
18111811
>>> ctx = dfn.SessionContext()
@@ -1853,8 +1853,8 @@ def regexp_replace(
18531853
string: Data to search for the regular expression match.
18541854
pattern: Regular expression to search for.
18551855
replacement: Text substituted for each match.
1856-
flags: Optional regular expression flags to control regex behavior. Add
1857-
``g`` to replace every match rather than only the first.
1856+
flags: Flags to control regex behavior. Add ``g`` to replace every
1857+
match rather than only the first.
18581858
18591859
Examples:
18601860
>>> ctx = dfn.SessionContext()
@@ -1905,8 +1905,8 @@ def regexp_count(
19051905
Args:
19061906
string: Data to search for the regular expression match.
19071907
pattern: Regular expression to search for.
1908-
start: Optional position to start the search (the first position is 1).
1909-
flags: Optional regular expression flags to control regex behavior.
1908+
start: Position to start the search (the first position is 1).
1909+
flags: Flags to control regex behavior.
19101910
19111911
Examples:
19121912
>>> ctx = dfn.SessionContext()

0 commit comments

Comments
 (0)