Skip to content

Commit a786cc0

Browse files
committed
Add explanation
1 parent d4bb98c commit a786cc0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/structlog/processors.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -843,6 +843,7 @@ class CallsiteParameterAdder:
843843
_handlers: ClassVar[
844844
dict[CallsiteParameter, Callable[[str, FrameType], Any]]
845845
] = {
846+
# We can't use lambda functions here because they are not pickleable.
846847
CallsiteParameter.PATHNAME: _get_callsite_pathname,
847848
CallsiteParameter.FILENAME: _get_callsite_filename,
848849
CallsiteParameter.MODULE: _get_callsite_module,

0 commit comments

Comments
 (0)