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

Type hints and type comments #84

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Conversation

Avasam
Copy link

@Avasam Avasam commented Sep 26, 2022

I've added python 3.4 compatible type comments to complete unknown types. And added the py.typed marker file so that type checkers like mypy, pyright and pytype know to use the inline types rather than looking for type stubs.

Validated against Typeshed's CI: Avasam/typeshed#2

In the second commit, I've also added a script in tests to run type-checking with both mypy and Pyright, for convenience.

@Avasam
Copy link
Author

Avasam commented Jul 8, 2023

Fixed conflicts, @asweigart could I get a review on this?

pyscreeze/__init__.py Outdated Show resolved Hide resolved
pyscreeze/__init__.py Outdated Show resolved Hide resolved
.mypy.ini Outdated Show resolved Hide resolved
@Avasam
Copy link
Author

Avasam commented Aug 18, 2024

@asweigart bump

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