gh-97943: PyFunction_GetAnnotations should return a borrowed reference. · python/cpython@d46f37e · GitHub
Skip to content

Commit d46f37e

Browse files
committed
gh-97943: PyFunction_GetAnnotations should return a borrowed reference.
It was returning a new reference, which isn't how it used to work, and isn't how it's documented.
1 parent 9fbfa42 commit d46f37e

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

Lines changed: 2 additions & 0 deletions

Objects/funcobject.c

Lines changed: 5 additions & 2 deletions

0 commit comments

Comments
 (0)