File tree 2 files changed +19
-8
lines changed
2 files changed +19
-8
lines changed Original file line number Diff line number Diff line change 1
- # The following comment should be removed at some point in the future.
2
- # mypy: strict-optional=False
3
-
4
- from __future__ import absolute_import , division
1
+ from __future__ import division
5
2
6
3
import contextlib
7
4
import itertools
11
8
from signal import SIGINT , default_int_handler , signal
12
9
13
10
from pip ._vendor import six
14
- from pip ._vendor .progress import HIDE_CURSOR , SHOW_CURSOR
15
11
from pip ._vendor .progress .bar import Bar , FillingCirclesBar , IncrementalBar
16
12
from pip ._vendor .progress .spinner import Spinner
17
13
30
26
except Exception :
31
27
colorama = None
32
28
33
- logger = logging .getLogger (__name__ )
34
-
35
-
36
29
def _select_progress_class (preferred , fallback ):
37
30
encoding = getattr (preferred .file , "encoding" , None )
38
31
Original file line number Diff line number Diff line change
1
+ from __future__ import absolute_import , division
2
+
3
+ import contextlib
4
+ import itertools
5
+ import logging
6
+ import sys
7
+ import time
8
+
9
+ from pip ._vendor .progress import HIDE_CURSOR , SHOW_CURSOR
10
+
11
+ from pip ._internal .utils .compat import WINDOWS
12
+ from pip ._internal .utils .logging import get_indentation
13
+ from pip ._internal .utils .typing import MYPY_CHECK_RUNNING
14
+ if MYPY_CHECK_RUNNING :
15
+ from typing import Iterator , IO
16
+
17
+ logger = logging .getLogger (__name__ )
18
+
1
19
class SpinnerInterface (object ):
2
20
def spin (self ):
3
21
# type: () -> None
You can’t perform that action at this time.
0 commit comments