Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

initial idea for clarifying names of token -> token_dict and token_str#869

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
jvanasco wants to merge1 commit intooauthlib:master
base:master
Choose a base branch
Loading
fromjvanasco:feature-clarify_code

Conversation

jvanasco
Copy link
Contributor

Here is an initial idea to start addressing#856

Various functions accept a parameter with a name like "token", but the parameter might either be a String or a Dict depending on the function. Sometimes two similar functions will require different input types - for examplesave_bearer_token operates on a Dict, butvalidate_bearer_token operates on a string. To better clarify this, and aid in future typing, the names of these functions were updated to have a_str or_dict suffix. On several functions, the type of input was not identified in the docstring and a code audit was needed to determine.

This does not change the various attributes onoauthlib.common.Request - which do need to be better listed and typed.

This quick PR was done for initial feedback. I did not run this through any tests yet.

Copy link
Contributor

@auvipyauvipy left a comment

Choose a reason for hiding this comment

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

the name change scheme seems to be OK but need input from more maintainers. also the related tests also should be renamed I think

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

@auvipyauvipyauvipy requested changes

@JonathanHuotJonathanHuotAwaiting requested review from JonathanHuot

Requested changes must be addressed to merge this pull request.

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

2 participants
@jvanasco@auvipy

[8]ページ先頭

©2009-2025 Movatter.jp