Skip to content

feat: Improve BlueapiClient to add plan parameter type hints#1469

Open
oliwenmandiamond wants to merge 17 commits intomainfrom
Improve-BlueapiClient-plan-repr-to-add-parameter-types
Open

feat: Improve BlueapiClient to add plan parameter type hints#1469
oliwenmandiamond wants to merge 17 commits intomainfrom
Improve-BlueapiClient-plan-repr-to-add-parameter-types

Conversation

@oliwenmandiamond
Copy link
Copy Markdown
Contributor

@oliwenmandiamond oliwenmandiamond commented Apr 1, 2026

Improves the help text for a plan to add the type hints and correct default values.

Before change:

>>> bc.plans.grid_analyserscan
grid_analyserscan(analyser, sequence, detectors, args, snake_axes=None, md=None)

>>> bc.plans.count
count(detectors, num=None, delay=None, metadata=None)

With this change

>>> bc.plans.grid_analyserscan
grid_analyserscan(
    analyser: ElectronAnalyserDetector,
    sequence: AbstractBaseSequence,
    detectors: list[Readable],
    args: Any,
    snake_axes: list[Any] | bool | None = None,
    md: dict | None = None
)

>>> bc.plans.count
count(
    detectors: list[Readable],
    num: int = 1,
    delay: float | list[float] | None = None,
    metadata: dict | None = None
)

@oliwenmandiamond oliwenmandiamond changed the title Imrpove BlueapiClient to add plan parameter type hints Improve BlueapiClient to add plan parameter type hints Apr 1, 2026
@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.23%. Comparing base (56e5b2c) to head (951eb7f).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1469      +/-   ##
==========================================
+ Coverage   95.20%   95.23%   +0.03%     
==========================================
  Files          43       43              
  Lines        3128     3151      +23     
==========================================
+ Hits         2978     3001      +23     
  Misses        150      150              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@oliwenmandiamond oliwenmandiamond changed the title Improve BlueapiClient to add plan parameter type hints feat: Improve BlueapiClient to add plan parameter type hints Apr 7, 2026
@oliwenmandiamond oliwenmandiamond marked this pull request as ready for review April 7, 2026 12:49
@oliwenmandiamond oliwenmandiamond requested a review from a team as a code owner April 7, 2026 12:49
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