Type checking error: AsyncOAuth2Client has no attribute "get"
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 62/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 静か
- 技術スタック
- python
- 領域
- api, authentication
調査の方向性
エントリポイント authlib.integrations.httpx_client.AsyncOAuth2Client から開始し、その HTTP メソッドが Pylance または Pyright にどのように公開されているかを調査します。報告された client.get の例を再現し、get、post、その他の標準 HTTP メソッドが型チェックエラーなしで認識されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
When using AsyncOAuth2Client, Pylance (or Pyright) raises a reportAttributeAccessIssue error, stating that the get attribute is unknown for the AsyncOAuth2Client class.
Error Stacks
Cannot access attribute "get" for class "AsyncOAuth2Client"
Attribute "get" is unknown Pylance (reportAttributeAccessIssue)
To Reproduce
A minimal example to reproduce the behavior:
from authlib.integrations.httpx_client import AsyncOAuth2Client
async def fetch_profile():
client = AsyncOAuth2Client(
client_id="your_client_id",
client_secret="your_client_secret",
state="your_state"
)
# Type checker raises an error here
response = await client.get(url="https://example.com/oauth/profile")
return response
Expected behavior
The type checker (Pylance/Pyright) should recognize get, post, and other standard HTTP methods on AsyncOAuth2Client.
Environment:
- OS: macos 26.5
- Python Version: 3.13
- Authlib Version: 1.7.2
- 主要言語
- Python
- スター
- 5.4k
- フォーク
- 570
- 平均マージ
- 1日 12時間
- マージ済み PR(30日)
- 4
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
authlib/authlib のほかの issue
-
Support signed UserInfo responses in the OIDC client対応中かも @choksi2212 が 1 日前に担当しました。 オープンrole:client spec:oidc-core
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 57/100
-
[RFC 6749 Conformance] AuthorizationCodeGrant does not enforce code expiration at framework levelオープン
難易度 5/5 1週間以上 初心者へのやさしさ 38/100
-
`authlib.common.security.generate_token`, at least when used for PKCE code verifiers, should follow RFC 7636 recommendations対応中かも @pranjalm37 が 23 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 70/100
-
support `httpx.URL` objects for urls対応中かも @gyanu2507 が 43 日前に担当しました。 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
authlib/authlib の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
lugassawan/swe-workbench#799 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
vllm-project/vllm#61131 ·
メンテナーはふだん 1 日以内に返信
-
Non-string form field names raise AttributeError when files are attached対応中かも @nightcityblade が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
kubernetes-client/python#2735 ·
メンテナーはふだん 1 日以内に返信
-
desktop help wanted test
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信