Skip to content

Commit

Permalink
Autoformat ApplyTypeAnnotationsVisitor
Browse files Browse the repository at this point in the history
I find it difficult sometimes to read method and function signatures
when there are multiple arguments with type annotations - left-aligning
the arguments makes it much easier for me to skim and see, using mostly
my automatic visual resoning,
- the argument names
- the argument types
- the return type

Without this, I feel like I'm trying to run a parser in my head, which
is not as fast and distracts me from code-skimming.

This change was generated using thte new AddTrailingCommas codemod
(which I'll put in a separate PR) via the command
```
python -m libcst.tool codemod add_trailing_commas.AddTrailingCommas ./libcst/codemod/visitors/_apply_type_annotations.py
```

Wait for CI - this is pure formatting, it should be very safe
  • Loading branch information
stroxler committed Feb 9, 2022
1 parent fb56fa6 commit f0869e5
Showing 1 changed file with 191 additions and 49 deletions.
Loading

0 comments on commit f0869e5

Please sign in to comment.