Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Stop subclassing Path with RequestBundleDir and SourceDir (python 3.12 fix) #993

Description

@eskultety

RequestBundleDir and SourcesDir both subclass Path which is now breaking because Path (since python 3.12 pathlib) operations that return a new Path (like joinpath and relative_to) are returning a new RequestBundleDir or SourcesDir instead of a new Path like the cachito code expects.

Reference: https://github.com/python/cpython/blob/2f0778675ad0eaf346924ef6a2f60529b92ffcfa/Lib/pathlib/_abc.py#L233
Found-by: @taylormadore

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions