Migrate to using pathlib in most of the SDK (#5435)
For user-facing functions, keep accepting `str` paths to maintain compatibility and flexibility, but add support for arbitrary path-like objects. For internal functions (in `downloading.py` and `uploading.py`), don't bother and require `pathlib.Path`. The only code that isn't converted is build-time code (e.g. `setup.py`) and code that came from openapi-generator.
Showing
想要评论请 注册 或 登录