question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:

  1. choose and remove one submodule from the list below
  2. add type hints the submodule you chose
  3. 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:open
  • Created 3 years ago
  • Comments:15 (14 by maintainers)

github_iconTop GitHub Comments

2reactions
briankoswcommented, Dec 18, 2020

I guess I’ll work on pl_bolts.datamodules then!

2reactions
briankoswcommented, Dec 17, 2020

Hey @akihironitta, I’d love to help with this 😃 Should I just pick one and create a PR?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found