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/browserbase/sdk-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 @@ -89,9 +89,9 @@ pyee==12.0.0
89
89
# via playwright
90
90
pygments==2.18.0
91
91
# via rich
92
- pyright==1.1.392.post0
93
92
pysocks==1.7.1
94
93
# via urllib3
94
+ pyright==1.1.399
95
95
pytest==8.3.3
96
96
# via pytest-asyncio
97
97
# via pytest-base-url
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 browserbase import Browserbase , AsyncBrowserbase
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