Skip to content

fix: Compatible with Python 3.7#1782

Closed
vchenpeng wants to merge 1 commit intor0x0r:masterfrom
vchenpeng:fix_3.7
Closed

fix: Compatible with Python 3.7#1782
vchenpeng wants to merge 1 commit intor0x0r:masterfrom
vchenpeng:fix_3.7

Conversation

@vchenpeng
Copy link
Copy Markdown
Contributor

Before 5.x and 6.0 can run normally in python 3.7 environment, but pywebview v6.1 starts because it uses python 3.8 version specific syntax. The original code is as follows. In python 3.8 environment below, the error is reported.

The minimum requirement for the get_args package is Python 3.8+.

from typing import Any, Callable, cast, get_args from typing_extensions import Literal, TypeAlias

@vchenpeng vchenpeng changed the title fix: 兼容支持在python3.7环境 fix: Compatible with Python 3.7 Mar 5, 2026
@vchenpeng vchenpeng closed this Mar 5, 2026
@vchenpeng vchenpeng deleted the fix_3.7 branch March 5, 2026 09:46
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

Successfully merging this pull request may close these issues.

1 participant