Skip to content

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

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'>."

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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