pybids icon indicating copy to clipboard operation
pybids copied to clipboard

Add type hints to PyBIDS

Open maximemulder opened this issue 8 months ago • 1 comments

Hello,

I am opening this issue to ask if there is any plan or motivation to add type hints (see PEP 484) to PyBIDS. I looked for issues with "type hints" or"typing" but I could not find anything on that matter.

Thanks.

maximemulder avatar Apr 26 '25 10:04 maximemulder

PRs are welcome. I would suggest starting by getting a type checker running and passing in CI, and only after that start adding more than the bare minimum necessary annotations.

Please be sure to pin the specific version of the type checker, as they routinely break on new releases. It's better to have one failing PR to update the type checker than for all PRs to start failing.

effigies avatar Oct 16 '25 14:10 effigies