Skip to content

Tech debt: Only infer type hints when necessary in parser_event decorator #4184

Closed
@leandrodamascena

Description

@leandrodamascena

Why is this needed?

Opening this issue on behalf of @raymondbutcher

Currently the code always tries to infer types from the event argument, which makes code execution unnecessary when the model is not None.

Which area does this relate to?

Parser

Suggestion

Refactor the code a little to try to infer types only if model is None.

Acknowledgment

Metadata

Metadata

Assignees

No one assigned

    Labels

    tech-debtTechnical Debt tasks

    Type

    No type

    Projects

    Status

    Shipped

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions