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 extra-names
  • Loading branch information
JelleZijlstra authored May 4, 2025
commit 7dec46bbf394d7ab8d62992a29c40866da40e5bf
4 changes: 2 additions & 2 deletions Lib/annotationlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -708,8 +708,8 @@ def _stringify_single(anno):
return repr(anno)


def get_annotate_function(obj):
"""Get the __annotate__ function for an object.
def get_annotate_from_class_namespace(obj):
"""Retrieve the annotate function from a class namespace dictionary.

Return None if the namespace does not contain an annotate function.
This is useful in metaclass ``__new__`` methods to retrieve the annotate function.
Expand Down
Loading
You are viewing a condensed version of this merge commit. You can view the full changes here.