« * K @brandonrohrer.com

Brandon Rohrer @brandonrohrer.com

2026-09-29 12:25 UTC

I always did this by setting all the parameter keyword defaults to `None`, then checking for any `None` values in the function. But there's a better way: using the bare `*` in the argument list. Everything after the `*` will be a required keyword argument.

A reply in a thread.

1 likes, 0 reposts, 1 replies

3 Next post4 More from @brandonrohrer.comBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup