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

fix version-specific type hinting #366

Merged
merged 3 commits into from
Feb 1, 2025
Merged

Conversation

spyoungtech
Copy link
Owner

@spyoungtech spyoungtech commented Feb 1, 2025

For methods that are type-hinted for AHK-version-specific behavior, the type hints are not correct and will result in bad parameters for AHK v1 and undeclared AHK versions when checked with mypy.

This PR fixes this issue by correcting the type hint from AHK[Optional[Literal['v1']]] to Union[AHK[Literal['v1']], AHK[None]]

@coveralls
Copy link

coveralls commented Feb 1, 2025

Coverage Status

coverage: 76.915% (+0.04%) from 76.876%
when pulling 3059d71 on fix-version-overloads
into 70f43c4 on main.

@spyoungtech spyoungtech force-pushed the fix-version-overloads branch from 8bc8a94 to 3059d71 Compare February 1, 2025 02:15
@spyoungtech spyoungtech merged commit a0aee74 into main Feb 1, 2025
13 checks passed
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.

2 participants