Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
greatheights82 opened this issue Aug 17, 2020 · 1 comment
Open

Comments

@greatheights82
Copy link
Contributor

greatheights82 commented Aug 17, 2020

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'>."
@charlieparkes
Copy link
Collaborator

charlieparkes commented Aug 18, 2020

I suspect this is a bug with auto paths. I'll dig into it a bit more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants