Skip to content

Commit bb6bbd3

Browse files
chore(internal): bump pyright version
1 parent 7d04401 commit bb6bbd3

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Repository = "https://github.com/browserbase/sdk-python"
4242
managed = true
4343
# version pins are in requirements-dev.lock
4444
dev-dependencies = [
45-
"pyright>=1.1.359",
45+
"pyright==1.1.399",
4646
"mypy",
4747
"respx",
4848
"pytest",

requirements-dev.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ pyee==12.0.0
8989
# via playwright
9090
pygments==2.18.0
9191
# via rich
92-
pyright==1.1.392.post0
9392
pysocks==1.7.1
9493
# via urllib3
94+
pyright==1.1.399
9595
pytest==8.3.3
9696
# via pytest-asyncio
9797
# via pytest-base-url

src/browserbase/_base_client.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,11 @@
9898
_AsyncStreamT = TypeVar("_AsyncStreamT", bound=AsyncStream[Any])
9999

100100
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
102106
else:
103107
try:
104108
from httpx._config import DEFAULT_TIMEOUT_CONFIG as HTTPX_DEFAULT_TIMEOUT

src/browserbase/_models.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
)
2020

2121
import pydantic
22-
import pydantic.generics
2322
from pydantic.fields import FieldInfo
2423

2524
from ._types import (

src/browserbase/_utils/_typing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from browserbase import Browserbase, AsyncBrowserbase
1111

1212
if TYPE_CHECKING:
13-
from _pytest.fixtures import FixtureRequest
13+
from _pytest.fixtures import FixtureRequest # pyright: ignore[reportPrivateImportUsage]
1414

1515
pytest.register_assert_rewrite("tests.utils")
1616

tests/test_models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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")
834834
def 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

0 commit comments

Comments
 (0)