Skip to content

Commit

Permalink
Fix import in doctest example (#14067)
Browse files Browse the repository at this point in the history
  • Loading branch information
robert-s-lee authored Aug 9, 2022
1 parent 0cfc53d commit d29a552
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lightning_app/structures/dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def __init__(self, **kwargs: T):
.. doctest::
>>> from lightning_app import LightningFlow, LightningWork
>>> from lightning_app.core import Dict
>>> from lightning_app.structures import Dict
>>> class CounterWork(LightningWork):
... def __init__(self):
... super().__init__()
Expand Down
2 changes: 1 addition & 1 deletion src/lightning_app/structures/list.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ def __init__(self, *items: T):
.. doctest::
>>> from lightning_app import LightningFlow, LightningWork
>>> from lightning_app.core import List
>>> from lightning_app.structures import List
>>> class CounterWork(LightningWork):
... def __init__(self):
... super().__init__()
Expand Down

0 comments on commit d29a552

Please sign in to comment.