Skip to content

Commit 080ca9d

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7e0de2b commit 080ca9d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

mypy/build.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,15 @@
4040
TypedDict,
4141
)
4242

43+
4344
# from librt.internal import cache_version
4445
# from mypy.cache import CACHE_VERSION as cache_version
4546
def cache_version() -> int:
4647
from mypy.cache import CACHE_VERSION
48+
4749
return CACHE_VERSION
4850

51+
4952
import mypy.semanal_main
5053
from mypy.cache import (
5154
CACHE_VERSION,

mypy/checkexpr.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
from __future__ import annotations
44

5-
import sys
65
# sys.exit(1)
7-
86
import enum
97
import itertools
108
import time
@@ -35,7 +33,6 @@
3533
from mypy.literals import literal
3634
from mypy.maptype import map_instance_to_supertype
3735
from mypy.meet import is_overlapping_types, narrow_declared_type
38-
from mypy.subtypes import is_subtype
3936
from mypy.message_registry import ErrorMessage
4037
from mypy.messages import MessageBuilder, format_type
4138
from mypy.nodes import (
@@ -1770,7 +1767,7 @@ def check_callable_call(
17701767
# or inferred something incompatible).
17711768
if is_subtype(candidate.ret_type, item):
17721769
candidates.append(candidate)
1773-
1770+
17741771
if candidates:
17751772
# We use 'None' context to prevent infinite recursion when checking overloads
17761773
# provided one of the candidates remains generic.

0 commit comments

Comments
 (0)