Skip to content

fix(python): drop the bare keyword marker from an empty signature - #318

Closed
moetemp wants to merge 2 commits into
moe/up/resource-binding-typesfrom
moe/up/python-empty-request-signature
Closed

moetemp wants to merge 2 commits into
moe/up/resource-binding-typesfrom
moe/up/python-empty-request-signature

Conversation

@moetemp

@moetemp moetemp commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

What changed?

This PR removes the bare * from a Python operation signature with no parameters, in <Service>Client methods and in operation functions.

The first commit adds an operation with an empty request to user-service, which has no endpoint, and to type-showcase, which has one, with today's output. Python has no output for them in that commit, since their files don't parse. The second commit is the fix.

It replaces moetemp#71.
It's based on #309.

Why?

async def notify_all(self, *,) is a SyntaxError, so the module doesn't parse.

How did you test it?

Link to a test plan if any -

  • Unit Tests
  • Staging
  • End to End Tests

The Python tests of user-service and type-showcase call the new methods from a Workflow through a real Nexus endpoint.

This was referenced Oct 28, 2026
@moetemp
moetemp force-pushed the moe/up/resource-binding-types branch from d9ed245 to 8d7b2b8 Compare October 29, 2026 04:00
@moetemp
moetemp force-pushed the moe/up/python-empty-request-signature branch 2 times, most recently from 8765209 to 8045102 Compare October 29, 2026 06:28
@moetemp
moetemp force-pushed the moe/up/resource-binding-types branch from 8d7b2b8 to 5c24067 Compare October 29, 2026 06:28
@moetemp
moetemp force-pushed the moe/up/python-empty-request-signature branch from 8045102 to 93e1d90 Compare October 29, 2026 07:00
@moetemp
moetemp force-pushed the moe/up/resource-binding-types branch from 5c24067 to 33695de Compare October 29, 2026 07:00
Python renders a bare `*` with no keyword parameter after it, in the user-service client method
and in the type-showcase operation function. So those files don't parse, and the Python output
keeps its previous content.
Python refuses a bare `*` with no parameter after it. An unpacked operation with an empty request
rendered one, in the client of a service with no endpoint and in an operation function. The
user-service client generates its `notify_all` method, and type-showcase its `ping` function.
@moetemp
moetemp force-pushed the moe/up/resource-binding-types branch from 33695de to a27caee Compare October 29, 2026 07:35
@moetemp
moetemp force-pushed the moe/up/python-empty-request-signature branch from 93e1d90 to 9ec3d43 Compare October 29, 2026 07:35
@moetemp

moetemp commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Closing this. The Streams stack doesn't need it.

@moetemp moetemp closed this Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant