As of version 24.3.0 (see #627), ExceptionDictTransformer interprets the constructor arguments locals_max_string and locals_max_length as type int | None where None supposedly disables abbreviation or truncation. However, if you set one of those to None, you get a TypeError:
TypeError: '<' not supported between instances of 'NoneType' and 'int'
As of version 24.3.0 (see #627),
ExceptionDictTransformer
interprets the constructor argumentslocals_max_string
andlocals_max_length
as typeint | None
whereNone
supposedly disables abbreviation or truncation. However, if you set one of those toNone
, you get aTypeError
:This is because of the following snippet:
https://github.com/hynek/structlog/blob/51641b764085c1b907a9b57857c1e71b2810a70e/src/structlog/tracebacks.py#L385-L390
It should contain logic that handles the
None
case.