File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ Repository = "https://github.com/writer/writer-python"
4444managed = true
4545# version pins are in requirements-dev.lock
4646dev-dependencies = [
47- " pyright>= 1.1.359 " ,
47+ " pyright== 1.1.399 " ,
4848 " mypy" ,
4949 " respx" ,
5050 " pytest" ,
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ pydantic-core==2.27.1
7676 # via pydantic
7777pygments==2.18.0
7878 # via rich
79- pyright==1.1.392.post0
79+ pyright==1.1.399
8080pytest==8.3.3
8181 # via pytest-asyncio
8282pytest-asyncio==0.24.0
Original file line number Diff line number Diff line change 9999_AsyncStreamT = TypeVar ("_AsyncStreamT" , bound = AsyncStream [Any ])
100100
101101if TYPE_CHECKING :
102- from httpx ._config import DEFAULT_TIMEOUT_CONFIG as HTTPX_DEFAULT_TIMEOUT
102+ from httpx ._config import (
103+ DEFAULT_TIMEOUT_CONFIG , # pyright: ignore[reportPrivateImportUsage]
104+ )
105+
106+ HTTPX_DEFAULT_TIMEOUT = DEFAULT_TIMEOUT_CONFIG
103107else :
104108 try :
105109 from httpx ._config import DEFAULT_TIMEOUT_CONFIG as HTTPX_DEFAULT_TIMEOUT
Original file line number Diff line number Diff line change 1919)
2020
2121import pydantic
22- import pydantic .generics
2322from pydantic .fields import FieldInfo
2423
2524from ._types import (
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class MyResponse(Foo[_T]):
110110 ```
111111 """
112112 cls = cast (object , get_origin (typ ) or typ )
113- if cls in generic_bases :
113+ if cls in generic_bases : # pyright: ignore[reportUnnecessaryContains]
114114 # we're given the class directly
115115 return extract_type_arg (typ , index )
116116
Original file line number Diff line number Diff line change 1010from writerai import Writer , AsyncWriter
1111
1212if TYPE_CHECKING :
13- from _pytest .fixtures import FixtureRequest
13+ from _pytest .fixtures import FixtureRequest # pyright: ignore[reportPrivateImportUsage]
1414
1515pytest .register_assert_rewrite ("tests.utils" )
1616
Original file line number Diff line number Diff line change @@ -832,7 +832,7 @@ class B(BaseModel):
832832
833833@pytest .mark .skipif (not PYDANTIC_V2 , reason = "TypeAliasType is not supported in Pydantic v1" )
834834def test_type_alias_type () -> None :
835- Alias = TypeAliasType ("Alias" , str )
835+ Alias = TypeAliasType ("Alias" , str ) # pyright: ignore
836836
837837 class Model (BaseModel ):
838838 alias : Alias
You can’t perform that action at this time.
0 commit comments