Skip to content

Commit 2d75631

Browse files
alemar99r00tabot
authored andcommitted
test: pin pyright version to avoid errors on authlib.AsyncOAuth2Client
Pyright version 1.1.408 has introduced an issue where it doesn't recognize AsyncOAuth2Client as an httpx.AsyncClient. The issue relies on typeshed: python/typeshed#15190. To avoid tests failures and adding unnecessary ignore directives to the code, let's pin the version to 1.1.407 and remove it once the bug is fixed.
1 parent 8fb4cb0 commit 2d75631

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ optional-dependencies.testing = [
3535
"ipdb>=0.13,<0.14",
3636
"junitxml>=0.7,<0.8",
3737
"postgresfixture>=0.5,<0.6",
38-
"pyright>=1.1.400",
38+
"pyright==1.1.407", # pin until https://github.com/python/typeshed/pull/15190 is merged and added to pyright.
3939
"pytest>=7.4,<8",
4040
"pytest-asyncio>=0.23,<0.24",
4141
"pytest-cov>=6,<6.1",

0 commit comments

Comments
 (0)