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.

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions