Skip to content

feat: Add **kwargs passthrough to client.load_extensions #1593

New issue

Have a question about this project? No Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “No Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? No Sign in to your account

Merged
merged 1 commit into from
Feb 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion interactions/client/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2012,6 +2012,7 @@ def load_extensions(
self,
*packages: str,
recursive: bool = False,
**load_kwargs: Any,
) -> None:
"""
Load multiple extensions at once.
Expand All @@ -2035,7 +2036,7 @@ def load_extensions(
extensions = [f.replace(os.path.sep, ".").replace(".py", "") for f in glob.glob(pattern, recursive=True)]

for ext in extensions:
self.load_extension(ext)
self.load_extension(ext, **load_kwargs)

def unload_extension(
self, name: str, package: str | None = None, force: bool = False, **unload_kwargs: Any
Expand Down