Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.3k
Closed
Description
Bug report
Bug description:
This should work but doesn't:
>>> fd=ast.FunctionDef(name="hi", args=[])>>> fdFunctionDef(name='hi', args=[], body=[], decorator_list=[], returns=None, type_comment=None, type_params=[])>>> fd.__replace__()Traceback (most recent call last): File "<python-input-16>", line 1, in <module> fd.__replace__() ~~~~~~~~~~~~~~^^TypeError: FunctionDef.__replace__ missing 2 keyword arguments: 'returns', 'type_comment'.cc@srittau
CPython versions tested on:
3.14
Operating systems tested on:
No response