Skip to content

Use Authlib Typeshed stubs for linting #103

Description

@markhobson

We currently ignore Authlib during linting as it is untyped. The situation is different within the IDE though as PyCharm comes bundled with Typeshed stubs which cannot be easily disabled. The version of Authlib stubs is coupled to the IDE version and so can easily become out of sync with the project, leading to spurious errors when editing code.

To opt out of the bundled stubs we can explicitly bring in the Authlib Typeshed stubs. This allows us to include Authlib during linting for a consistent experience between CLI and IDE.

To implement this requires addressing many type issues around our use of Authlib which needs careful consideration.

Activity

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

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions