Skip to content

Convert and validate TypedDict items #4477

@pekkaklarck

Description

@pekkaklarck

Currently when using TypedDict as a type hint, Robot simply converts the value to a dictionary but doesn't convert or validated individual items. We are planning to add conversion and validation for generics in RF 5.1 (#4433) and it would be both convenient and consistent to also handle TypedDict objects better.

This change will cause backwards incompatibility problems if someone has used TypedDict as a type hint and used arguments do not actually match it. I don't think that's a desired situation and explicitly preventing it can be considered a bug fix.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions