From dd5e16d678aaa2bb70ba62d38b84279a211d6687 Mon Sep 17 00:00:00 2001 From: Christian Ledermann Date: Wed, 10 Apr 2024 15:15:32 +0100 Subject: [PATCH] no_implicit_optional A codemod to make your implicit optional type hints PEP-484 compliant (#116) * Add no_implicit_optional to the list of awesome Python type tools * Link no_implicit_optional description to pep-484 --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 65390d6..3510f40 100644 --- a/README.md +++ b/README.md @@ -116,6 +116,7 @@ Collection of awesome Python types, stubs, plugins, and tools to work with them. - [infer-types](https://github.com/orsinium-labs/infer-types) - CLI tool to automatically infer and add type annotations into Python code. - [jsonschema-gentypes](https://github.com/camptocamp/jsonschema-gentypes) - Generate Python types based on TypedDict from a JSON Schema. - [monkeytype](https://github.com/instagram/MonkeyType) - Collects runtime types of function arguments and return values, and can automatically generate stub files or even add draft type annotations directly to your code based on the types collected at runtime. +- [no_implicit_optional](https://github.com/hauntsaninja/no_implicit_optional) - A codemod to make your implicit optional type hints [PEP 484](https://peps.python.org/pep-0484/#union-types) compliant. - [pyannotate](https://github.com/dropbox/pyannotate) - Insert annotations into your source code based on call arguments and return types observed at runtime. - [PyTypes](https://github.com/pvs-hd-tea/PyTypes) - Infer Types by Python Tracing. - [pyre infer](https://github.com/facebook/pyre-check) - Pyre has a powerful feature for migrating codebases to a typed format. The [infer](https://pyre-check.org/docs/pysa-coverage/) command-line option ingests a file or directory, makes educated guesses about the types used, and applies the annotations to the files.