Skip to content

fix(starlette_client): remove default= keyword from config.get calls #770

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

aliaksei-protchanka
Copy link

Authlib's Starlette integration was calling self.config.get(conf_key, default=None), which raises a TypeError when config is a plain dict. Changed all occurrences to use the positional form self.config.get(conf_key, None) so that both dicts and Config objects work seamlessly.

DO NOT SEND ANY SECURITY FIX HERE. Please read "Security Reporting" section
on README.

What kind of change does this PR introduce? (check at least one)

  • Bugfix
  • Feature
  • Code style update
  • Refactor
  • Other, please describe:

Does this PR introduce a breaking change? (check one)

  • Yes

  • No

  • You consent that the copyright of your pull request source code belongs to Authlib's author.

@azmeuk
Copy link
Member

azmeuk commented May 13, 2025

Thank you for your contribution.

I am not sure why, but your patch causes the CI to fail.
I can reproduce the error locally, without this patch the test suite stays green.

Authlib's Starlette integration was calling self.config.get(conf_key, default=None), which raises a TypeError when config is a plain dict. Changed all occurrences to use the positional form self.config.get(conf_key, None) so that both dicts and Config objects work seamlessly.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy