Fix(python-generator): make generated signatures compliant with PEP 8 #35

Merged
jakob.scheid merged 3 commits from fix/python-signatures-pep-8-compliance into main 2026-09-22 16:15:36 +02:00
Owner

Signatures PEP 8 compliance

This pull request makes argument default values in Python function signatures compliant with PEP 8. Previously, the = character has always been surrounded with a space. Now, it is only if there is a type hint.

The test cases were updated to the new behavior and there are new ones to test it additionally.

There is a new entry for this change in the changelog.

Related issues

Closes #30

# Signatures PEP 8 compliance This pull request makes argument default values in Python function signatures compliant with PEP 8. Previously, the `=` character has always been surrounded with a space. Now, it is only if there is a type hint. The test cases were updated to the new behavior and there are new ones to test it additionally. There is a new entry for this change in the changelog. ## Related issues Closes #30
jakob.scheid added this to the 0.2.0 milestone 2026-09-22 16:08:33 +02:00
jakob.scheid added the Kind/BugKind/Enhancement
Priority
Medium
3
labels 2026-09-22 16:08:33 +02:00
jakob.scheid added this to the Project Board project 2026-09-22 16:08:33 +02:00
jakob.scheid added 1 commit 2026-09-22 16:08:34 +02:00
The '=' character at a parameter in the signature was surrounded with
spaces previously. That is no longer the case, unless there is a type
hint.
jakob.scheid moved this to Review in Project Board on 2026-09-22 16:08:43 +02:00
jakob.scheid marked the pull request as work in progress 2026-09-22 16:08:53 +02:00
jakob.scheid marked the pull request as ready for review 2026-09-22 16:10:14 +02:00
jakob.scheid added the Kind/Documentation label 2026-09-22 16:10:23 +02:00
jakob.scheid added 2 commits 2026-09-22 16:13:54 +02:00
Updated test cases to the new default value PEP 8 compliance and added
new test cases to test the new behavior.
Added a changelog entry for the PEP 8 compliance of Python function
signatures default values.
jakob.scheid force-pushed fix/python-signatures-pep-8-compliance from 045167098f to 06802c96f6 2026-09-22 16:13:54 +02:00 Compare
jakob.scheid merged commit 63cef6f641 into main 2026-09-22 16:15:36 +02:00
jakob.scheid deleted branch fix/python-signatures-pep-8-compliance 2026-09-22 16:15:36 +02:00
jakob.scheid moved this to Done in Project Board on 2026-09-22 16:15:42 +02:00
Sign in to join this conversation.