Skip to content

Commit d29a552

Browse files
authored
Fix import in doctest example (#14067)
1 parent 0cfc53d commit d29a552

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/lightning_app/structures/dict.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def __init__(self, **kwargs: T):
2222
.. doctest::
2323
2424
>>> from lightning_app import LightningFlow, LightningWork
25-
>>> from lightning_app.core import Dict
25+
>>> from lightning_app.structures import Dict
2626
>>> class CounterWork(LightningWork):
2727
... def __init__(self):
2828
... super().__init__()

src/lightning_app/structures/list.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def __init__(self, *items: T):
2424
.. doctest::
2525
2626
>>> from lightning_app import LightningFlow, LightningWork
27-
>>> from lightning_app.core import List
27+
>>> from lightning_app.structures import List
2828
>>> class CounterWork(LightningWork):
2929
... def __init__(self):
3030
... super().__init__()

0 commit comments

Comments
 (0)