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

mypy complains that webview doesn't have library stubs or py.typed marker #1382

Closed
lanzz opened this issue May 14, 2024 · 1 comment
Closed

Comments

@lanzz
Copy link
Contributor

lanzz commented May 14, 2024

Specification

  • pywebview version: 5.1
  • operating system: macOS 14.4.1
  • web renderer: not relevant

Description

test.py:

import webview

webview.create_window('https://example.com')

Running mypy produces an error:

$ mypy test.py
test.py:1: error: Skipping analyzing "webview": module is installed, but missing library stubs or py.typed marker  [import-untyped]
test.py:1: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
Found 1 error in 1 file (checked 1 source file)

The codebase seems properly type-annotated, I've opened a PR to add the py.typed marker, which seems to solve the problem locally.

Practicalities

  • YES, I am willing to work on this issue myself.

  • NO, I am not prepared to support this issue financially.

@lanzz
Copy link
Contributor Author

lanzz commented May 18, 2024

Closing this as the PR has been already merged

@lanzz lanzz closed this as completed May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant