Skip to content

Commit fb729a7

Browse files
chore(internal): codegen related update (#68)
1 parent 638dc72 commit fb729a7

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

Diff for: README.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -178,12 +178,14 @@ Note that requests that time out are [retried twice by default](#retries).
178178

179179
We use the standard library [`logging`](https://docs.python.org/3/library/logging.html) module.
180180

181-
You can enable logging by setting the environment variable `BROWSERBASE_LOG` to `debug`.
181+
You can enable logging by setting the environment variable `BROWSERBASE_LOG` to `info`.
182182

183183
```shell
184-
$ export BROWSERBASE_LOG=debug
184+
$ export BROWSERBASE_LOG=info
185185
```
186186

187+
Or to `debug` for more verbose logging.
188+
187189
### How to tell whether `None` means `null` or missing
188190

189191
In an API response, a field may be explicitly `null`, or missing entirely; in either case, its value is `None` in this library. You can differentiate the two cases with `.model_fields_set`:

Diff for: pyproject.toml

-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ dependencies = [
1414
"anyio>=3.5.0, <5",
1515
"distro>=1.7.0, <2",
1616
"sniffio",
17-
"cached-property; python_version < '3.8'",
1817
]
1918
requires-python = ">= 3.8"
2019
classifiers = [

Diff for: src/browserbase/_compat.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,6 @@ def __set_name__(self, owner: type[Any], name: str) -> None: ...
214214
# __set__ is not defined at runtime, but @cached_property is designed to be settable
215215
def __set__(self, instance: object, value: _T) -> None: ...
216216
else:
217-
try:
218-
from functools import cached_property as cached_property
219-
except ImportError:
220-
from cached_property import cached_property as cached_property
217+
from functools import cached_property as cached_property
221218

222219
typed_cached_property = cached_property

0 commit comments

Comments
 (0)