Created
September 29, 2025 13:42
-
-
Save leontrolski/7f5663e700014cb73fe3967cbc3f55d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ast | |
| from pathlib import Path | |
| src = Path(...).read_text() | |
| for f in ast.parse(src).body: | |
| if isinstance(f, ast.FunctionDef): | |
| f.decorator_list = [] | |
| f.body = [] | |
| print(ast.unparse(f)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment