Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Add mypy to the project #8

Merged
merged 3 commits into from
Jul 20, 2023
Merged

Add mypy to the project #8

merged 3 commits into from
Jul 20, 2023

Conversation

Viicos
Copy link
Member

@Viicos Viicos commented Jul 20, 2023

No description provided.

@codecov
Copy link

codecov bot commented Jul 20, 2023

Codecov Report

Patch coverage: 100.00% and no project coverage change.

Comparison is base (1ae79ba) 100.00% compared to head (4c4eb40) 100.00%.

Additional details and impacted files
@@            Coverage Diff            @@
##            master        #8   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         5    +1     
  Lines           91        98    +7     
  Branches         7         7           
=========================================
+ Hits            91        98    +7     
Flag Coverage Δ
unittests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
src/otpauth/__init__.py 100.00% <100.00%> (ø)
src/otpauth/core.py 100.00% <100.00%> (ø)
src/otpauth/rfc4226.py 100.00% <100.00%> (ø)
src/otpauth/rfc6238.py 100.00% <100.00%> (ø)
src/otpauth/types.py 100.00% <100.00%> (ø)

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

src/otpauth/core.py Outdated Show resolved Hide resolved
@@ -0,0 +1,3 @@
import typing as t

SupportedAlgorithms = t.Literal["SHA1", "SHA256", "SHA512"]
Copy link
Member

Choose a reason for hiding this comment

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

How about putting this type into core.py, so that we don't have to add a new file.

Copy link
Member Author

Choose a reason for hiding this comment

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

Did this at first, but created a new file as I'm using it as well in the other files. I can revert if you prefer.

@lepture lepture merged commit e59a3d5 into authlib:master Jul 20, 2023
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants