Authlib integration requests_client OAuth2Session missing inheritance

未關閉 適合新手
#15,548 5 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
2/5
預估耗時
1-3 小時
新手友好度
72/100
Issue 類型
缺陷
描述清晰度
描述清楚
活躍度
冷清
技術堆疊
python

研究方向

開啟 Stubs/Authlib/authlib/integrations/requests_client/oauth2_session.pyi 的第 20 行,並與 Authlib's oauth2_session.py 的第 46 行進行比較。確認宣告的 OAuth2Session 基底類別和 import 與實作相符,然後執行適用的 typeshed 驗證;當 stub 暴露 requests.Session 繼承關係時即表示完成。

由索引模型根據 Issue 內容生成。

描述

stubs: improvement

https://github.com/python/typeshed/blob/main/stubs/Authlib/authlib/integrations/requests_client/oauth2_session.pyi#L20

There is a comment here saying OAuth2Session inherits from requests.Session which is correct according to:

https://github.com/authlib/authlib/blob/main/authlib/integrations/requests_client/oauth2_session.py#L46

I think the fix is to from requests import Session at the top of the file and add Session to the class definition?

If that is correct I could open a PR.

主要語言
Python
星號
5.1k
分支
2.1k
平均合併
1 天 13 小時
30 天內合併 PR
73

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

python/typeshed 的其他 Issue

查看 python/typeshed 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。