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 types to auth.py #2033

Open
wants to merge 1 commit into
base: type-hints
Choose a base branch
from
Open

Add types to auth.py #2033

wants to merge 1 commit into from

Conversation

Viicos
Copy link

@Viicos Viicos commented Jan 14, 2023

Noticed there's no code formatting applied to this library. We might want to use isort and a code formatter (e.g black), as type hints addition will require a lot of imports.

@@ -117,8 +124,8 @@ class OAuthHandler(OAuth1UserHandler):
Use :class:`OAuth1UserHandler` instead.
"""

def __init__(self, consumer_key, consumer_secret, access_token=None,
Copy link
Author

Choose a reason for hiding this comment

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

This is probably not that important, but maybe we could use a better a way of deprecating old name classes here. See this comment on why it could be problematic, and a few options given in the SO thread

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.

None yet

1 participant