Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit d00b34b

Browse files
Add limitations section (#54)
Fixes #40
1 parent 17bd815 commit d00b34b

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

README.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ It is built as a LibCST codemod; see the
88
[LibCST documentation](https://libcst.readthedocs.io/en/latest/codemods_tutorial.html)
99
for more information on how to use codemods.
1010

11+
# Usage
12+
1113
Here's how to use it:
1214

1315
- `pip install autotyping`
@@ -83,6 +85,18 @@ There are two shortcut flags to enable multiple transformations at once:
8385
`--int-param`, `--float-param`, `--str-param`, `--bytes-param`, and
8486
`--annotate-imprecise-magics`.
8587

88+
# Limitations
89+
90+
Autotyping is intended to be a simple tool that uses heuristics to find
91+
annotations that would be tedious to add by hand. The heuristics may fail,
92+
and after you run autotyping you should run a type checker to verify that
93+
the types it added are correct.
94+
95+
Known limitations:
96+
97+
- autotyping does not model code flow through a function, so it may miss
98+
implicit `None` returns
99+
86100
# Changelog
87101

88102
## Unreleased

0 commit comments

Comments
 (0)