Skip to content

Commit

Permalink
fix mypy
Browse files Browse the repository at this point in the history
  • Loading branch information
mde-pach committed Mar 3, 2024
1 parent 93328cd commit 082312b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions blitz/ui/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

from nicegui import ui
from nicegui.element import Element

from blitz.ui.blitz_ui import BlitzUI, get_blitz_ui


Expand Down Expand Up @@ -44,7 +45,7 @@ def __init__(
render: bool | None = None,
**kwargs: Any,
) -> None:
self._ng: Element
self._ng: V
self.props = props
self.classes = classes
self.blitz_ui: BlitzUI
Expand Down Expand Up @@ -81,11 +82,11 @@ def refresh(self, *args: Any, **kwargs: Any) -> None:
self.render.refresh(*args, **kwargs) # type: ignore

@property
def ng(self) -> Element:
def ng(self) -> V:
return self._ng

@ng.setter
def ng(self, value: Element) -> None:
def ng(self, value: V) -> None:
self._ng = value

@classmethod
Expand Down
2 changes: 1 addition & 1 deletion blitz/ui/components/element/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def render(self) -> None:
self.ng = ui.element(tag=self.tag, _client=self._client).props(self.props).classes(self.classes)


class IFrame(BaseElement): # type: ignore
class IFrame(BaseElement):
"""
IFrame element.
Expand Down

0 comments on commit 082312b

Please sign in to comment.