2 Commits
Author SHA1 Message Date
jakob.scheid 045167098f docs(changelog): add Python signatures PEP 8 compliance entry
Added a changelog entry for the PEP 8 compliance of Python function
signatures default values.
2026-09-22 16:09:30 +02:00
jakob.scheid 31995e830b test(python-generator): update tests to PEP 8 compliance
Updated test cases to the new default value PEP 8 compliance and added
new test cases to test the new behavior.
2026-09-22 16:04:20 +02:00
3 changed files with 3 additions and 4 deletions

No files matched your search

@@ -1,6 +1,5 @@
def func(): ...
def func2(a: int, b: int = 42, c=42, d=42):
"""
:param c:
@@ -2,14 +2,12 @@
A test module.
"""
def fn(a: int, b: int = 42, c=42, d=42):
"""
:param c:
:type c: int
"""
def add(a: int | float, b: int | float) -> int | float:
"""
Adds two numbers.
@@ -727,7 +727,9 @@ def argument_list(argument_list: str) -> ast.arguments:
],
),
(
argument_list("a, b='a', /, *args, c=None, d=True, **kwargs"),
argument_list(
"a, b='a', /, *args, c=None, d=True, **kwargs"
),
[
PythonFunctionArgument(
'a',