Skip to content

Commit 78382d0

Browse files
committed
fix optional typing
1 parent 92fe188 commit 78382d0

File tree

1 file changed

+1
-3
lines changed
  • src/lightning_app/structures

1 file changed

+1
-3
lines changed

src/lightning_app/structures/list.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
import typing as t
22

3-
from pyparsing import Optional
4-
53
from lightning_app.utilities.app_helpers import _LightningAppRef, _set_child_name
64

75
T = t.TypeVar("T")
@@ -52,7 +50,7 @@ def __init__(self, *items: T):
5250

5351
self._name: t.Optional[str] = ""
5452
self._last_index = 0
55-
self._backend: Optional[Backend] = None
53+
self._backend: t.Optional[Backend] = None
5654
for item in items:
5755
self.append(item)
5856
_set_child_name(self, item, str(self._last_index))

0 commit comments

Comments
 (0)