-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow
apply
to overwrite existing annotations using CLI flag. (#183)
It should be safe to remove the `args.existing_annotation_strategy = ExistingAnnotationStrategy.REPLICATE` line because that is now the default value in `args`. This needed the latest ApplyTypeAnnotationsVisitor from libcst. Set the minimum libcst version to 0.3.5. Note: I ran `pipenv update -d` to update the packages. This ended up upgrading pyflakes, which now errors on `List[make_forward_ref('Foo')]` saying "undefined name 'Foo'", probably because it's a literal non-class string within a container. So, I've temporarily silenced these errors in .flake8. Fixed f-strings that didn't have expressions inside. Co-authored-by: Pradeep Kumar Srinivasan <pradeepkumars@fb.com>
- Loading branch information
Showing
6 changed files
with
193 additions
and
170 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
per-file-ignores = | ||
tests/test_stubs.py:F821 | ||
tests/test_typing.py:F821 |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters