style: format source code using Ruff

This commit is contained in:
jakob.scheid committed 2026-09-21 20:10:04 +02:00
1 parent d9887f34c9
commit aa4a139878
41 files changed
+6061 -5670

No files matched your search

+4 -5
View File
@@ -15,12 +15,11 @@
from typing import Union
import ast
__all__ = [
'ast_node'
]
__all__ = ['ast_node']
def ast_node(statement: str) -> Union[ast.stmt, None]:
'''
"""
Returns an AST node from the statement.
:param statement: The statement.
@@ -28,7 +27,7 @@ def ast_node(statement: str) -> Union[ast.stmt, None]:
:return: The node.
:rtype: Union[ast.stmt, None]
'''
"""
body = ast.parse(statement).body
if not body: