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

add py.typed to the project to please mypy and make the library PEP-561 compliant #272

Merged
merged 1 commit into from
Jan 20, 2023

Conversation

Kamforka
Copy link
Collaborator

Recently in other projects that are using thehive4py v2.x I started to receive errors from mypy like error: Skipping analyzing 'thehive4py.xxx': found module but no type hints or library stubs

Weird that it didn't show up before in CI checks.

Anyways it is an easy fix as according to PEP-561 a placeholder file called py.typed in the project root should fix the issue, and then mypy would respect the typehints of the library.

@Kamforka Kamforka added this to the 2.0.0b4 milestone Jan 19, 2023
@Kamforka Kamforka self-assigned this Jan 19, 2023
@nadouani nadouani merged commit bec54e9 into develop Jan 20, 2023
@nadouani nadouani deleted the make-the-lib-mypy-compliant branch January 20, 2023 09:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants