Skip to content

Incorrect type of key in StartStopEntry for representing a key that may not be present #609

@yousefmoazzam

Description

@yousefmoazzam

Same as #608, but for the start_offset and stop_offset keys in StartStopEntry:

class StartStopEntry(TypedDict):
"""
Configuration for a single dimension's previewing in terms of start/stop values.
"""
start: Union[int, str]
start_offset: Optional[int]
stop: Union[int, str]
stop_offset: Optional[int]

Optional[int] should be replaced with NotRequired[Optional[int]] to correctly reflect the state of the dict that can be received from the start/stop config for a dimension in a preview parameter value.

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