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

Added initial mypy type checking #213

Merged
merged 1 commit into from
Aug 16, 2022

Conversation

sebastian-philipp
Copy link
Contributor

This is very minimalistic without any type annotations,
but in general this is already as it is super helpful for uses.

Signed-off-by: Sebastian Wagner sebastian@inter.link

This is very minimalistic without any type annotations,
but in general this is *already as it is* super helpful for uses.

Signed-off-by: Sebastian Wagner <sebastian@inter.link>
import warnings
from collections import Counter, defaultdict
from itertools import chain
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can't explain why this change happened. Any ideas?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have isort automatically running on save?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

isort is actually always called with tox as it is configured. That's probably why.

@coveralls
Copy link

coveralls commented Aug 16, 2022

Coverage Status

Coverage decreased (-0.002%) to 97.364% when pulling c2d75c9 on sebastian-philipp:mypy-typing into d44494d on makinacorpus:master.

@Gagaro
Copy link
Member

Gagaro commented Aug 16, 2022

Thanks, that's great 👍 . I'll try to add some typings.

@Gagaro Gagaro merged commit a60fc00 into makinacorpus:master Aug 16, 2022
@Gagaro
Copy link
Member

Gagaro commented Aug 16, 2022

I added some typings in 05cfa2c if you want to take a look at them and tell me what you think about them.

@Gagaro
Copy link
Member

Gagaro commented Aug 16, 2022

There are some issue with Python 3.6 I'll check later on https://github.com/makinacorpus/django-safedelete/runs/7861846714?check_suite_focus=true

@sebastian-philipp
Copy link
Contributor Author

added a few comments. But 05cfa2c looks great!

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.

3 participants