Skip to content

Commit 6b97d95

Browse files
Bump mypy from 0.942 to 0.950 (#178)
* Bump mypy from 0.942 to 0.950 * Add annotation for partial * Add missing await - fix limit argument Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Marc Mueller <[email protected]>
1 parent d754fb0 commit 6b97d95

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

python_typing_update/main.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,9 @@ async def typing_update(
3939
- 2, filename: if not typing update is necessary
4040
"""
4141
null_file = StringIO()
42-
autoflake_partial = partial(autoflake_main, standard_out=null_file, standard_error=null_file)
42+
autoflake_partial: partial[int] = partial(
43+
autoflake_main, standard_out=null_file, standard_error=null_file
44+
)
4345
version_string = f"--py{''.join(map(str, args.min_version))}-plus"
4446

4547
# Add, replace and reorder imports
@@ -191,7 +193,7 @@ async def async_run(args: argparse.Namespace) -> int:
191193
print(
192194
f"Limit applied! Only updated the first {args.limit} "
193195
f"of {len(files_updated)} files")
194-
async_restore_files(files_updated[args.limit:])
196+
await async_restore_files(files_updated[args.limit:])
195197
files_updated = files_updated[:args.limit]
196198

197199
if args.check is True:

requirements_test.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
-r requirements_test_pre_commit.txt
2-
mypy==0.942
2+
mypy==0.950
33
pre-commit==2.18.1
44
pylint==2.13.7
55
pytest==7.1.2

0 commit comments

Comments
 (0)