Content-Length: 260032 | pFad | http://www.togithub.com/googleapis/google-auth-library-python-oauthlib/issues/84

1C7F Scopes are incorrectly documented as Sequence[str] type in flow.py · Issue #84 · googleapis/google-auth-library-python-oauthlib · GitHub
Skip to content

Scopes are incorrectly documented as Sequence[str] type in flow.py #84

Open
@Fruglemonkey

Description

@Fruglemonkey

In flow.py, scopes are incorrectly documented as Sequence[str] in the classmethod documentation.

As far as I can tell, following the code path back up to oauthlib, scopes ends up being passed to the scope_to_list helper function which can actually take scopes in the format of list, tuple, set, str.

Importantly, set is not considered a sequence, but is useful in the context of scopes - you may have multiple tasks wishing to add to a set of scopes, in which case using set avoids unnecessary duplicates.

Suggestion: Change to Union[list[str], tuple[str], set[str], str] or Union[list[str], tuple[str], set[str]] instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type: docsImprovement to the documentation for an API.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions









      ApplySandwichStrip

      pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


      --- a PPN by Garber Painting Akron. With Image Size Reduction included!

      Fetched URL: http://www.togithub.com/googleapis/google-auth-library-python-oauthlib/issues/84

      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy