onshape-public / onshape-clients

All Onshape clients for interacting with the Onshape API.
MIT License
32 stars 26 forks source link

All python's examples contains broken code with contextmanager #85

Open szobov opened 2 years ago

szobov commented 2 years ago

Hi there,

Thanks for this project! I noticed that all examples in autogenerated python's docs show such line of code:

with onshape_client.oas.ApiClient(configuration) as api_client:

Like here But in this repo, there're no contextmanagers at all. For example, try to search __enter__, so all examples are invalid in terms of code. Would be nice to update the code or change the docs. Thanks!