mirror of
https://github.com/python/cpython.git
synced 2025-08-28 04:35:02 +00:00
Add "annotate" SET_FUNCTION_ATTRIBUTE bit to dis. (#124566)
This commit is contained in:
parent
4e829c0e6f
commit
4defb58d38
2 changed files with 19 additions and 1 deletions
|
@ -32,7 +32,7 @@ _have_code = (types.MethodType, types.FunctionType, types.CodeType,
|
|||
CONVERT_VALUE = opmap['CONVERT_VALUE']
|
||||
|
||||
SET_FUNCTION_ATTRIBUTE = opmap['SET_FUNCTION_ATTRIBUTE']
|
||||
FUNCTION_ATTR_FLAGS = ('defaults', 'kwdefaults', 'annotations', 'closure')
|
||||
FUNCTION_ATTR_FLAGS = ('defaults', 'kwdefaults', 'annotations', 'closure', 'annotate')
|
||||
|
||||
ENTER_EXECUTOR = opmap['ENTER_EXECUTOR']
|
||||
LOAD_CONST = opmap['LOAD_CONST']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue