Skip to content

Commit

Permalink
Add versionadded info to changed API
Browse files Browse the repository at this point in the history
  • Loading branch information
sscherfke committed Jun 16, 2024
1 parent d0d58cf commit 587ea5e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/structlog/tracebacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,11 @@ def to_repr(
Returns:
The string representation of *obj*.
.. versionchanged:: 24.3.0
Added *max_length* argument. Use :program:`rich` to render locals if it
is available. Call :func:`repr()` on strings in fallback
implementation.
"""
if rich is not None:
# Let rich render the repr if it is available.
Expand Down Expand Up @@ -201,6 +206,9 @@ def extract(
A Trace instance with structured information about all exceptions.
.. versionadded:: 22.1.0
.. versionchanged:: 24.3.0
Added *locals_max_length*, *locals_hide_sunder* and
*locals_hide_dunder* arguments.
"""

stacks: list[Stack] = []
Expand Down Expand Up @@ -337,6 +345,9 @@ class ExceptionDictTransformer:
.. seealso::
:doc:`exceptions` for a broader explanation of *structlog*'s exception
features.
.. versionchanged:: 24.3.0
Added *locals_max_length*, *locals_hide_sunder*, *locals_hide_dunder*
and *suppress* arguments.
"""

def __init__(
Expand Down

0 comments on commit 587ea5e

Please sign in to comment.