Skip to content

Make AsyncMovable.set value parameter positional-only - #1477

Open
jacopoabramo wants to merge 3 commits into
bluesky:mainfrom
jacopoabramo:fix/async-movable-positional-set
Open

jacopoabramo wants to merge 3 commits into
bluesky:mainfrom
jacopoabramo:fix/async-movable-positional-set

Conversation

@jacopoabramo

Copy link
Copy Markdown
Contributor

Not sure if it's intentional, but AsyncMovable.set is misaligned from bluesky.protocols.Movable, because the latter accepts only positional arguments while the former doesn't have that kind of limitation.

This keeps the two protocols conformant while allowing set to accept also keyword arguments (I believe StandardMovable.set has a timeout keyword parameter)

I spotted this inconsistency in my own project and it forced me to override the set method with a different signature. This helps keeping consistency when using AsyncMovable compatible devices with bluesky plans requiring Movable objects.

This branch has not been deployed

No deployments
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