Skip to content

PathInfo.directory_uri is never None #1186

@coretl

Description

@coretl

At the moment PathInfo.directory_uri is type hinted as being allowed to be None:

directory_uri: str | None = None

But is always calculated in post_init. If we turn this into a pydantic BaseModel then we can calculate the field on init like TriggerInfo.exposure_timeout.

Acceptance Criteria

  • Converted to look like TriggerInfo and any type: ignore on calling code removed

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions