Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

gh-132426: Add get_annotate_from_class_namespace replacing get_annotate_function#132490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
JelleZijlstra merged 4 commits intopython:mainfromJelleZijlstra:getannofunc
May 4, 2025
Merged
Changes from1 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
PrevPrevious commit
NextNext commit
Merge branch 'main' into getannofunc
  • Loading branch information
@JelleZijlstra
JelleZijlstra authoredApr 16, 2025
commit730daa15909e1522cba95536c4baaea2d750a537
4 changes: 4 additions & 0 deletionsLib/annotationlib.py
View file
Open in desktop
Original file line numberDiff line numberDiff 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 thefull changes here.

[8]ページ先頭

©2009-2025 Movatter.jp