File tree Expand file tree Collapse file tree 7 files changed +10
-7
lines changed Expand file tree Collapse file tree 7 files changed +10
-7
lines changed Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ Repository = "https://github.com/openlayer-ai/openlayer-python"
48
48
managed = true
49
49
# version pins are in requirements-dev.lock
50
50
dev-dependencies = [
51
- " pyright>= 1.1.359 " ,
51
+ " pyright== 1.1.399 " ,
52
52
" mypy" ,
53
53
" respx" ,
54
54
" pytest" ,
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ pydantic-core==2.27.1
81
81
# via pydantic
82
82
pygments==2.18.0
83
83
# via rich
84
- pyright==1.1.392.post0
84
+ pyright==1.1.399
85
85
pytest==8.3.3
86
86
# via pytest-asyncio
87
87
pytest-asyncio==0.24.0
Original file line number Diff line number Diff line change 98
98
_AsyncStreamT = TypeVar ("_AsyncStreamT" , bound = AsyncStream [Any ])
99
99
100
100
if TYPE_CHECKING :
101
- from httpx ._config import DEFAULT_TIMEOUT_CONFIG as HTTPX_DEFAULT_TIMEOUT
101
+ from httpx ._config import (
102
+ DEFAULT_TIMEOUT_CONFIG , # pyright: ignore[reportPrivateImportUsage]
103
+ )
104
+
105
+ HTTPX_DEFAULT_TIMEOUT = DEFAULT_TIMEOUT_CONFIG
102
106
else :
103
107
try :
104
108
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 openlayer import Openlayer , AsyncOpenlayer
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