Add type annotations
See original GitHub issue🚀 Feature
As static type checker mypy was added in #433, we can add type annotations to the codebase.
Steps to contribute
For each PR:
- choose and remove one submodule from the list below
- add type hints the submodule you chose
- make sure to pass mypy check with
mypy
Progress
-
pl_bolts.callbacks.*(#444) -
pl_bolts.datamodules.*(#462) -
pl_bolts.datasets.* -
pl_bolts.losses.* -
pl_bolts.metrics.* -
pl_bolts.models.* -
pl_bolts.models.autoencoders.* -
pl_bolts.models.detection.* -
pl_bolts.models.gans.* -
pl_bolts.models.regression.* -
pl_bolts.models.rl.* -
pl_bolts.models.self_supervised.* -
pl_bolts.models.vision.* -
pl_bolts.optimizers.* -
pl_bolts.transforms.* -
pl_bolts.utils.*(#455) -
tests.*
Issue Analytics
- State:
- Created 3 years ago
- Comments:15 (14 by maintainers)
Top Results From Across the Web
typing — Support for type hints — Python 3.11.1 documentation
Source code: Lib/typing.py This module provides runtime support for type hints. The most fundamental support consists of the types Any, Union, Callable, ...
Read more >Type Annotation in TypeScript - TutorialsTeacher
TypeScript - Type Annotations. TypeScript is a typed language, where we can specify the type of the variables, function parameters and object properties....
Read more >Type Annotation in Python | Towards Data Science
What Are Type Annotations? Type annotations — also known as type signatures — are used to indicate the datatypes of variables and input/outputs ......
Read more >Understanding type annotation in Python - LogRocket Blog
Adding type hints to lists. Python lists are annotated based on the types of the elements they have or expect to have. Starting...
Read more >First look: adding type annotations to JavaScript - 2ality
First look: adding type annotations to JavaScript · How do the proposed type annotations work? · Thoughts on adding type annotations to JavaScript....
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

I guess I’ll work on
pl_bolts.datamodulesthen!Hey @akihironitta, I’d love to help with this 😃 Should I just pick one and create a PR?