Skip to content

Commit

Permalink
fix typing
Browse files Browse the repository at this point in the history
  • Loading branch information
rodja committed Feb 9, 2025
1 parent 34312ee commit 061693f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nicegui/storage.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,8 +165,9 @@ async def _create_tab_storage(self, tab_id: str) -> None:
if tab_id not in self._tabs:
if Storage.redis_url:
self._tabs[tab_id] = Storage._create_persistent_dict(f'tab-{tab_id}')
assert isinstance(self._tabs[tab_id], PersistentDict)
await self._tabs[tab_id].initialize()
tab = self._tabs[tab_id]
if isinstance(tab, PersistentDict):
await tab.initialize()
else:
self._tabs[tab_id] = ObservableDict()

Expand Down

0 comments on commit 061693f

Please sign in to comment.