Skip to content

Commit

Permalink
feat(polars): allow ibis.polars.connect() to function without any arg…
Browse files Browse the repository at this point in the history
…uments
  • Loading branch information
ksuarez1423 authored and jcrist committed Jan 20, 2023
1 parent 54a4557 commit d653a07
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ibis/backends/polars/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,18 @@ def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
self._tables = dict()

def do_connect(self, tables: MutableMapping[str, pl.LazyFrame]) -> None:
def do_connect(
self, tables: MutableMapping[str, pl.LazyFrame] | None = None
) -> None:
"""Construct a client from a dictionary of `polars.LazyFrame`s.
Parameters
----------
tables
Mutable mapping of string table names to polars LazyFrames.
"""
if not tables:
tables = {}
self._tables.update(tables)

@property
Expand Down

0 comments on commit d653a07

Please sign in to comment.