holoviz / holoviz/param

Adding type hints to Param's source code

Open
#589 0 comments 8 reactions 0 assignees View on GitHub
"internal improvement" doc
Dominant language
Python
Stars
521
Forks
86
Avg merge
1d 13h
Merged PRs (30d)
35

Description

These days more and more people ask library maintainers to add type hints to their code base, so I'm doing it before someone else gets the chance to do it! 🙃

Besides that, I wouldn't be surprised if the process of adding type hints to the source code would uncover a few bugs, which wouldn't be a bad thing. It would also improve the user experience when writing Param's code in an editor supporting type hints like VS Code.

Also, if the holoviz group decides to gradually add type hints to their packages, this is probably the place where it should start.

Of course, this work needs to wait until Python 2 support is dropped, which I hope will happen soon.

I hope in the future to be able to add more information to this issue about the best way to add type hints to a code base and raise the major difficulties (or blockers if any) that could be encountered.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.