Skip to content

Commit

Permalink
docs(examples): align Table.get_backend with ibis.get_backend examples (
Browse files Browse the repository at this point in the history
  • Loading branch information
IndexSeek authored Nov 16, 2024
1 parent b1be5ea commit 11947d8
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ibis/expr/types/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,11 +388,12 @@ def get_backend(self) -> BaseBackend:
>>> import ibis
>>> con = ibis.duckdb.connect()
>>> t = con.create_table("t", {"id": [1, 2, 3]})
>>> backend = t.get_backend()
>>> backend.name
'duckdb'
>>> type(backend)
<class 'ibis.backends.duckdb.Backend'>
>>> t.get_backend() # doctest: +ELLIPSIS
<ibis.backends.duckdb.Backend object at 0x...>
See Also
--------
[`ibis.get_backend()`](./connection.qmd#ibis.get_backend)
"""
return self._find_backend(use_default=True)

Expand Down

0 comments on commit 11947d8

Please sign in to comment.