You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ex.node = <ast.FunctionDef object at 0x7f9c7e65b1c0>
ex.decorator = <ast.Name object at 0x7f9c7e65a2f0>
ex.node = <ast.FunctionDef object at 0x7f9c7e65b1c0>
ex.decorator = <ast.Name object at 0x7f9c7e65a2f0>
3.11 output:
ex.node = <ast.Name object at 0x7fd9fe5a96f0>
ex.decorator = None
ex.node = <ast.FunctionDef object at 0x7fd9fe5a9780>
ex.decorator = <ast.Name object at 0x7fd9fe5a96f0>
Somehow, the decorator is only detected when it's an object with __call__. When it's just a function, executing sets decorator to None and node to the decorator instead of the function definition. This is REALLY weird.
The text was updated successfully, but these errors were encountered:
3.10 output:
3.11 output:
Somehow, the decorator is only detected when it's an object with
__call__
. When it's just a function, executing setsdecorator
toNone
andnode
to the decorator instead of the function definition. This is REALLY weird.The text was updated successfully, but these errors were encountered: