Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Type checking error: AsyncOAuth2Client has no attribute "get"

オープン 初心者向け
#899 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
62/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
python

調査の方向性

エントリポイント 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 を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

authlib/authlib のほかの issue

authlib/authlib の issue をすべて見る

似ている issue

Python の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。