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 4e74efc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions blitz/ui/components/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from typing import Any, Generic, Protocol, Self, TypeVar, cast, overload

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 +44,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 +81,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 4e74efc

Please sign in to comment.