Page MenuHomeElementl

[mypy] logger definition
ClosedPublic

Authored by cdecarolis on Mon, May 24, 8:50 PM.

Details

Summary

Type annotations for logger definition in preparation for build_logger_context.

It's a little weird that I needed to add a __call__ here, because we don't do the update_wrapper stuff we do elsewhere. Instead, it seems mypy is unable to parse that certain loggers are invoking the decorator s.t. they produce a logger definition vs a function that produces a logger definition.

Test Plan

mypy

Diff Detail

Repository
R1 dagster
Lint
Lint Not Applicable
Unit
Tests Not Applicable