X Tutup
Skip to content

Commit c9ad2e1

Browse files
committed
upgrade mypy to get typeshed fixes
1 parent 6fe1702 commit c9ad2e1

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.5.0
3+
rev: v3.1.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
@@ -12,20 +12,20 @@ repos:
1212
- id: requirements-txt-fixer
1313
- id: double-quote-string-fixer
1414
- repo: https://gitlab.com/pycqa/flake8
15-
rev: 3.8.0
15+
rev: 3.8.3
1616
hooks:
1717
- id: flake8
1818
additional_dependencies: [flake8-typing-imports==1.6.0]
1919
- repo: https://github.com/pre-commit/mirrors-autopep8
20-
rev: v1.5.2
20+
rev: v1.5.3
2121
hooks:
2222
- id: autopep8
2323
- repo: https://github.com/pre-commit/pre-commit
24-
rev: v2.4.0
24+
rev: v2.6.0
2525
hooks:
2626
- id: validate_manifest
2727
- repo: https://github.com/asottile/pyupgrade
28-
rev: v2.4.1
28+
rev: v2.6.2
2929
hooks:
3030
- id: pyupgrade
3131
args: [--py36-plus]
@@ -40,11 +40,11 @@ repos:
4040
- id: add-trailing-comma
4141
args: [--py36-plus]
4242
- repo: https://github.com/asottile/setup-cfg-fmt
43-
rev: v1.9.0
43+
rev: v1.10.0
4444
hooks:
4545
- id: setup-cfg-fmt
4646
- repo: https://github.com/pre-commit/mirrors-mypy
47-
rev: v0.770
47+
rev: v0.782
4848
hooks:
4949
- id: mypy
5050
exclude: ^testing/resources/

pre_commit/file_lock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ def _locked(
2121
) -> Generator[None, None, None]:
2222
try:
2323
# TODO: https://github.com/python/typeshed/pull/3607
24-
msvcrt.locking(fileno, msvcrt.LK_NBLCK, _region) # type: ignore
24+
msvcrt.locking(fileno, msvcrt.LK_NBLCK, _region)
2525
except OSError:
2626
blocked_cb()
2727
while True:
2828
try:
2929
# TODO: https://github.com/python/typeshed/pull/3607
30-
msvcrt.locking(fileno, msvcrt.LK_LOCK, _region) # type: ignore # noqa: E501
30+
msvcrt.locking(fileno, msvcrt.LK_LOCK, _region)
3131
except OSError as e:
3232
# Locking violation. Returned when the _LK_LOCK or _LK_RLCK
3333
# flag is specified and the file cannot be locked after 10
@@ -46,7 +46,7 @@ def _locked(
4646
# "Regions should be locked only briefly and should be unlocked
4747
# before closing a file or exiting the program."
4848
# TODO: https://github.com/python/typeshed/pull/3607
49-
msvcrt.locking(fileno, msvcrt.LK_UNLCK, _region) # type: ignore
49+
msvcrt.locking(fileno, msvcrt.LK_UNLCK, _region)
5050
else: # pragma: win32 no cover
5151
import fcntl
5252

0 commit comments

Comments
 (0)
X Tutup