Skip to content

Commit

Permalink
fix(mypy): ignore errors here
Browse files Browse the repository at this point in the history
  • Loading branch information
codingpaula committed Nov 15, 2024
1 parent f41bd12 commit 70223b9
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions nicegui/native/native.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def set_title(self, title: str) -> None:
async def get_cookies(self) -> Any: # pylint: disable=invalid-overridden-method
return await self._request()

async def get_current_url(self) -> str: # pylint: disable=invalid-overridden-method
async def get_current_url(self) -> str: # type: ignore # pylint: disable=invalid-overridden-method
return await self._request()

def destroy(self) -> None:
Expand Down Expand Up @@ -86,13 +86,20 @@ def toggle_fullscreen(self) -> None:
def move(self, x: int, y: int) -> None:
self._send(x, y)

async def evaluate_js(self, script: str) -> str: # pylint: disable=arguments-differ,invalid-overridden-method
async def evaluate_js( # type: ignore # pylint: disable=arguments-differ,invalid-overridden-method
self,
script: str,
) -> str:
return await self._request(script)

async def create_confirmation_dialog(self, title: str, message: str) -> bool: # pylint: disable=invalid-overridden-method
async def create_confirmation_dialog( # type: ignore # pylint: disable=invalid-overridden-method
self,
title: str,
message: str,
) -> bool:
return await self._request(title, message)

async def create_file_dialog( # pylint: disable=invalid-overridden-method
async def create_file_dialog( # type: ignore # pylint: disable=invalid-overridden-method
self,
dialog_type: int = webview.OPEN_DIALOG,
directory: str = '',
Expand All @@ -108,7 +115,7 @@ async def create_file_dialog( # pylint: disable=invalid-overridden-method
file_types=file_types,
)

def expose(self, function: Callable) -> None: # pylint: disable=arguments-differ
def expose(self, function: Callable) -> None: # type: ignore # pylint: disable=arguments-differ
raise NotImplementedError(f'exposing "{function}" is not supported')

def _send(self, *args: Any, **kwargs: Any) -> None:
Expand Down

0 comments on commit 70223b9

Please sign in to comment.