Skip to content

Commit 94ac0cd

Browse files
committed
Further remove path from calc_fig
1 parent 46e55e9 commit 94ac0cd

2 files changed

Lines changed: 1 addition & 4 deletions

File tree

src/py/kaleido/__init__.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ def stop_sync_server(*, silence_warnings: bool = False):
8080

8181
async def calc_fig(
8282
fig: Figurish,
83-
path: str | None | Path = None,
8483
opts: LayoutOpts | None = None,
8584
*,
8685
topojson: str | None = None,
@@ -104,7 +103,6 @@ async def calc_fig(
104103
async with Kaleido(**kopts) as k:
105104
return await k.calc_fig(
106105
fig,
107-
path=path,
108106
opts=opts,
109107
topojson=topojson,
110108
)

src/py/tests/test_init.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,12 @@ async def test_async_wrapper_functions(mock_kaleido_class):
8383
topojson = "test_topojson"
8484
kopts = {"some_option": "value"}
8585

86-
result = await kaleido.calc_fig(fig, path, opts, topojson=topojson, kopts=kopts)
86+
result = await kaleido.calc_fig(fig, opts, topojson=topojson, kopts=kopts)
8787

8888
expected_kopts = {"some_option": "value", "n": 1}
8989
mock_kaleido_class.assert_called_with(**expected_kopts)
9090
mock_kaleido.calc_fig.assert_called_with(
9191
fig,
92-
path=path,
9392
opts=opts,
9493
topojson=topojson,
9594
)

0 commit comments

Comments
 (0)