autotyping icon indicating copy to clipboard operation
autotyping copied to clipboard

Results 7 autotyping issues
Sort by recently updated
recently updated
newest added

We already do this for str.format: https://github.com/JelleZijlstra/autotyping/blob/master/autotyping/autotyping.py#L536

Currently the pyanalyze-report parameter is a bit poorly documented, and I believe that it is a very useful tool, so having a better explanation would be great. Here is a...

autotyping annotates the following function as returning `bool` but it should be `bool | None` (example from pandas/util/_test_decorators.py) ```py def _skip_if_no_mpl(): mod = safe_import("matplotlib") if mod: mod.use("Agg") else: return True...

When adding the below to my `.libcst.codemod.yaml`: ```yaml blacklist_patterns: ['repo\/venv\/'] ``` I get a bunch of `FileNotFoundError`s: ``` Codemodding /Users/user/code/repo/venv/lib/python3.10/site-packages/Bio/Entrez/__init__.py Traceback (most recent call last): File "/Users/user/code/repo/venv/lib/python3.10/site-packages/libcst/codemod/_cli.py", line 314, in...

I would like users to be able to run just `python -m autotyping --safe path/to/dir/` without having to go through setting up a LibCST config. Unfortunately `libcst.tool` is fairly rigid...

Basic control flow can be implemented to remove all false positive cases where implicit `None` return may happen. ### The strategy - visiting `If`, `While` and `For` nodes, to find...