Skip to content

Type hinting logger when adding it as an arg throws a TypeError #35

@greatheights82

Description

@greatheights82

Explicitly passing the logger into a function with a type hint (e.g. def my_function(Message: str, logger, **kwargs): throws the following error

"InvalidPayloadError Failed to run AUTO_PATH Action(functions=[<function my_function at 0x7f5ea1e5f0d0>], paths=[], queues=[]) due to TypeError Type of logger should be <class 'lpipe.logging.LPLogger'> not <class 'NoneType'>."

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