Skip to content

missing Authlib stubs for integrations cause poor developer experience #15145

@StephenWithPH

Description

@StephenWithPH

# Exclude integrations dirs:
authlib.integrations.django_client
authlib.integrations.django_oauth1
authlib.integrations.django_oauth2
authlib.integrations.flask_client
authlib.integrations.flask_oauth1
authlib.integrations.flask_oauth2
authlib.integrations.httpx_client
authlib.integrations.requests_client
authlib.integrations.sqla_oauth2
authlib.integrations.starlette_client

With these integrations omitted from the stubs, users of AuthLib get inaccurate feedback when trying to use most of authlib.integrations.

For example:

from authlib.integrations.django_client import OAuth

... produces unhappy intellisense:

Cannot find reference 'django_client' in 'authlib.integrations'

This is workaroundable once a developer knows what's going on, but it's a bit of bother.

Metadata

Metadata

Assignees

No one assigned

    Labels

    stubs: incompleteAnnotations or sub-modules missing from an existing package or module

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions