File tree 7 files changed +10
-7
lines changed
7 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Repository = "https://github.com/Finch-API/finch-api-python"
42
42
managed = true
43
43
# version pins are in requirements-dev.lock
44
44
dev-dependencies = [
45
- " pyright>= 1.1.359 " ,
45
+ " pyright== 1.1.399 " ,
46
46
" mypy" ,
47
47
" respx" ,
48
48
" pytest" ,
Original file line number Diff line number Diff line change @@ -69,7 +69,7 @@ pydantic-core==2.27.1
69
69
# via pydantic
70
70
pygments==2.18.0
71
71
# via rich
72
- pyright==1.1.392.post0
72
+ pyright==1.1.399
73
73
pytest==8.3.3
74
74
# via pytest-asyncio
75
75
pytest-asyncio==0.24.0
Original file line number Diff line number Diff line change 99
99
_AsyncStreamT = TypeVar ("_AsyncStreamT" , bound = AsyncStream [Any ])
100
100
101
101
if 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
103
107
else :
104
108
try :
105
109
from httpx ._config import DEFAULT_TIMEOUT_CONFIG as HTTPX_DEFAULT_TIMEOUT
Original file line number Diff line number Diff line change 19
19
)
20
20
21
21
import pydantic
22
- import pydantic .generics
23
22
from pydantic .fields import FieldInfo
24
23
25
24
from ._types import (
Original file line number Diff line number Diff line change @@ -110,7 +110,7 @@ class MyResponse(Foo[_T]):
110
110
```
111
111
"""
112
112
cls = cast (object , get_origin (typ ) or typ )
113
- if cls in generic_bases :
113
+ if cls in generic_bases : # pyright: ignore[reportUnnecessaryContains]
114
114
# we're given the class directly
115
115
return extract_type_arg (typ , index )
116
116
Original file line number Diff line number Diff line change 10
10
from finch import Finch , AsyncFinch
11
11
12
12
if TYPE_CHECKING :
13
- from _pytest .fixtures import FixtureRequest
13
+ from _pytest .fixtures import FixtureRequest # pyright: ignore[reportPrivateImportUsage]
14
14
15
15
pytest .register_assert_rewrite ("tests.utils" )
16
16
Original file line number Diff line number Diff line change @@ -832,7 +832,7 @@ class B(BaseModel):
832
832
833
833
@pytest .mark .skipif (not PYDANTIC_V2 , reason = "TypeAliasType is not supported in Pydantic v1" )
834
834
def test_type_alias_type () -> None :
835
- Alias = TypeAliasType ("Alias" , str )
835
+ Alias = TypeAliasType ("Alias" , str ) # pyright: ignore
836
836
837
837
class Model (BaseModel ):
838
838
alias : Alias
You can’t perform that action at this time.
0 commit comments