diff options
author | Jelle Zijlstra <jelle.zijlstra@gmail.com> | 2024-05-22 02:38:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-22 02:38:12 (GMT) |
commit | e9875ecb5dd3a9c44a184c71cc562ce1fea6e03b (patch) | |
tree | 9b8aca9a11a3c8e1e1278cbe0293a0eab5f622a2 /Include/cpython | |
parent | 73ab83b27f105a4509046ce26e35f20d66625195 (diff) | |
download | cpython-e9875ecb5dd3a9c44a184c71cc562ce1fea6e03b.zip cpython-e9875ecb5dd3a9c44a184c71cc562ce1fea6e03b.tar.gz cpython-e9875ecb5dd3a9c44a184c71cc562ce1fea6e03b.tar.bz2 |
gh-119180: PEP 649: Add __annotate__ attributes (#119209)
Diffstat (limited to 'Include/cpython')
-rw-r--r-- | Include/cpython/funcobject.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Include/cpython/funcobject.h b/Include/cpython/funcobject.h index 5433ba4..598cd33 100644 --- a/Include/cpython/funcobject.h +++ b/Include/cpython/funcobject.h @@ -41,6 +41,7 @@ typedef struct { PyObject *func_weakreflist; /* List of weak references */ PyObject *func_module; /* The __module__ attribute, can be anything */ PyObject *func_annotations; /* Annotations, a dict or NULL */ + PyObject *func_annotate; /* Callable to fill the annotations dictionary */ PyObject *func_typeparams; /* Tuple of active type variables or NULL */ vectorcallfunc vectorcall; /* Version number for use by specializer. |