Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into getannofunc
  • Loading branch information
JelleZijlstra authored Apr 16, 2025
commit 730daa15909e1522cba95536c4baaea2d750a537
4 changes: 4 additions & 0 deletions Lib/annotationlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -824,6 +824,10 @@ def annotations_to_string(annotations):


def _get_and_call_annotate(obj, format):
"""Get the __annotate__ function and call it.

May not return a fresh dictionary.
"""
annotate = getattr(obj, "__annotate__", None)
if annotate is not None:
ann = call_annotate_function(annotate, format, owner=obj)
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.