Skip to content

Commit e97bc87

Browse files
committed
Add docstring
1 parent 58fef4c commit e97bc87

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

python/datafusion/context.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,15 @@ def set(self, key: str, value: str) -> SessionConfig:
297297
return self
298298

299299
def with_extension(self, extension: Any) -> SessionConfig:
300+
"""Create a new configuration using an extension.
301+
302+
Args:
303+
extension: A custom configuration extension object. These are
304+
shared from another DataFusion extension library.
305+
306+
Returns:
307+
A new :py:class:`SessionConfig` object with the updated setting.
308+
"""
300309
self.config_internal = self.config_internal.with_extension(extension)
301310
return self
302311

0 commit comments

Comments
 (0)