Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate to using pathlib in most of the SDK #5435

Merged
merged 1 commit into from
Dec 8, 2022

Commits on Dec 8, 2022

  1. Migrate to using pathlib in most of the SDK

    `pathlib` enables simpler, more type-safe code.
    
    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.
    SpecLad committed Dec 8, 2022
    Configuration menu
    Copy the full SHA
    ddc32b8 View commit details
    Browse the repository at this point in the history