Skip to content

Commit

Permalink
pass network_adapter kwarg to backend
Browse files Browse the repository at this point in the history
  • Loading branch information
hperrey committed Jun 4, 2024
1 parent 81e1242 commit 0e5a59b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/seabreeze/backends.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ def use(
if "pyusb_backend" in kwargs:
pyusb_backend = kwargs.pop("pyusb_backend")
BackendConfig.api_kwargs["pyusb_backend"] = pyusb_backend
if "network_adapter" in kwargs:
network_adapter = kwargs.pop("network_adapter")
BackendConfig.api_kwargs["network_adapter"] = network_adapter
if kwargs:
raise TypeError(
f"unknown keyword arguments {set(kwargs)!r} for backend {backend!r}"
Expand Down

0 comments on commit 0e5a59b

Please sign in to comment.