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.
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.