aliev / aioauth

Asynchronous OAuth 2.0 provider for Python 3
https://aliev.me/aioauth
MIT License
214 stars 19 forks source link

fix: type hinting refactoring and small bugfix #77

Closed aliev closed 1 year ago

aliev commented 1 year ago

For ServerError class the ErrorType value was temporarily_unavailable, it was replaced with server_error value.

Each attribute of error classes now has ErrorType type.

For Literal's using the get_args in order to get the literal's value instead of hard coded strings.

codecov-commenter commented 1 year ago

Codecov Report

Merging #77 (3974b96) into master (48896f2) will increase coverage by 0.02%. The diff coverage is 100.00%.

:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@            Coverage Diff             @@
##           master      #77      +/-   ##
==========================================
+ Coverage   98.78%   98.80%   +0.02%     
==========================================
  Files          14       14              
  Lines         658      669      +11     
  Branches       99      102       +3     
==========================================
+ Hits          650      661      +11     
  Misses          4        4              
  Partials        4        4              
Impacted Files Coverage Δ
aioauth/grant_type.py 93.02% <ø> (ø)
aioauth/errors.py 100.00% <100.00%> (ø)
aioauth/response_type.py 100.00% <100.00%> (ø)
aioauth/server.py 100.00% <100.00%> (ø)
aioauth/types.py 100.00% <100.00%> (ø)

:mega: We’re building smart automated test selection to slash your CI/CD build times. Learn more