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 24df180
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ jobs:
#----------------------------------------------
- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: poetry install --with=dev --no-root --no-interaction
run: poetry install --with=dev --no-interaction
#----------------------------------------------
# add matrix specifics and run test suite
#----------------------------------------------
Expand Down
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 24df180

Please sign in to comment.