Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add optional typing stubs #10

Open
CFlaniganMide opened this issue Jul 22, 2020 · 0 comments
Open

Add optional typing stubs #10

CFlaniganMide opened this issue Jul 22, 2020 · 0 comments
Labels
API Related to outward-facing package usability fixes/enhancements enhancement New feature or request

Comments

@CFlaniganMide
Copy link
Contributor

PEP 484 defines a standard to add type hints to files in a backwards compatible manner by adding stub files. MyPy fully supports this for their type checking, which is supported by many modern IDEs.

Adding type hints for everything would be fairly tedious, although ultimately helpful. Likely, the most value would be from defining types for datasets and eventlists/arrays, since these are accessed fairly regularly. Starting with ebmlite would also provide a lot of information implicitly, which would go a long way to helping this repo.

@CFlaniganMide CFlaniganMide added enhancement New feature or request API Related to outward-facing package usability fixes/enhancements labels Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
API Related to outward-facing package usability fixes/enhancements enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant