Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
prefer more generic Mapping over dict type (#10)
* prefer more generic Mapping over dict type typically it's better to specify more generic types for input parameters, and specific types our return values. In this case changing headers param from dict to Mapping should resolve typing issues when eg. starlette.requests.headers.Headers instance is passed to get_principal_from_headers() * collections.abc.Mapping instead of deprecated typing.Mapping
- Loading branch information