Skip to content

Commit dd56042

Browse files
chore(internal): codegen related update (#197)
1 parent 00228d9 commit dd56042

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,16 @@ client.with_options(http_client=DefaultHttpxClient(...))
290290

291291
By default the library closes underlying HTTP connections whenever the client is [garbage collected](https://docs.python.org/3/reference/datamodel.html#object.__del__). You can manually close the client using the `.close()` method if desired, or with a context manager that closes when exiting.
292292

293+
```py
294+
from onebusaway import OnebusawaySDK
295+
296+
with OnebusawaySDK() as client:
297+
# make requests here
298+
...
299+
300+
# HTTP client is now closed
301+
```
302+
293303
## Versioning
294304

295305
This package generally follows [SemVer](https://semver.org/spec/v2.0.0.html) conventions, though certain backwards-incompatible changes may be released as minor versions:

0 commit comments

Comments
 (0)