Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: ignore reportMissingModuleSource #30

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions alfort_dom/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
PatchText,
Props,
)
from js import HTMLElement, document, window # type: ignore
from pyodide import JsProxy, create_proxy, to_js # type: ignore
from js import HTMLElement, document, window
from pyodide import JsProxy, create_proxy, to_js

S = TypeVar("S")
M = TypeVar("M")
Expand Down
4 changes: 2 additions & 2 deletions alfort_dom/dom.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
from typing import Any, Callable, Protocol, TypeVar

from alfort import Dispatch, Effect
from js import document, window # type: ignore
from pyodide import create_proxy # type: ignore
from js import document, window
from pyodide import create_proxy

M = TypeVar("M")

Expand Down
4 changes: 2 additions & 2 deletions alfort_dom/event.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

from alfort import Dispatch
from alfort.sub import Subscription, UnSubscription, subscription
from js import document # type: ignore
from pyodide import create_proxy # type: ignore
from js import document
from pyodide import create_proxy

Msg = TypeVar("Msg")
Handler: TypeAlias = Callable[[Any], Msg]
Expand Down
2 changes: 1 addition & 1 deletion alfort_dom/local_storage.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from collections.abc import MutableMapping
from typing import Iterator

from js import localStorage # type: ignore
from js import localStorage

_ignore_keys = ["0_commands", "0_interpreters"]

Expand Down
2 changes: 1 addition & 1 deletion alfort_dom/location.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
from typing import Any

from js import location # type: ignore
from js import location


class _Getter:
Expand Down
4 changes: 2 additions & 2 deletions docs/examples/simple_api/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@
from urllib.parse import ParseResult as URL
from urllib.parse import urlparse

import pyodide.http
from alfort import Dispatch, Effect
from alfort.vdom import VDom, el
from pyodide import http

from alfort_dom import AlfortDom

Expand Down Expand Up @@ -41,7 +41,7 @@ class ReceivePhotos:

async def fetch_photos(album_id: int) -> list[Photo]:
url = f"https://jsonplaceholder.typicode.com/albums/{album_id}/photos"
res = await pyodide.http.pyfetch(url)
res = await http.pyfetch(url)
return [
Photo(
album_id=obj["albumId"],
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ stubPath ="stubs"
typeCheckingMode = "strict"
reportMissingImports = false
reportMissingTypeStubs = false
reportMissingModuleSource = false
pythonVersion = "3.10"
pythonPlatform = "Linux"

Expand Down