equal
deleted
inserted
replaced
11 from .node import ( |
11 from .node import ( |
12 bin, |
12 bin, |
13 hex, |
13 hex, |
14 nullrev, |
14 nullrev, |
15 ) |
15 ) |
|
16 |
|
17 from typing import ( |
|
18 Any, |
|
19 Callable, |
|
20 Dict, |
|
21 Iterable, |
|
22 List, |
|
23 Optional, |
|
24 Set, |
|
25 TYPE_CHECKING, |
|
26 Tuple, |
|
27 Union, |
|
28 ) |
|
29 |
16 from . import ( |
30 from . import ( |
17 encoding, |
31 encoding, |
18 error, |
32 error, |
19 obsolete, |
33 obsolete, |
20 pycompat, |
|
21 scmutil, |
34 scmutil, |
22 util, |
35 util, |
23 ) |
36 ) |
|
37 |
24 from .utils import ( |
38 from .utils import ( |
25 repoviewutil, |
39 repoviewutil, |
26 stringutil, |
40 stringutil, |
27 ) |
41 ) |
28 |
42 |
29 if pycompat.TYPE_CHECKING: |
43 # keeps pyflakes happy |
30 from typing import ( |
44 assert [ |
31 Any, |
45 Any, |
32 Callable, |
46 Callable, |
33 Dict, |
47 Dict, |
34 Iterable, |
48 Iterable, |
35 List, |
49 List, |
36 Optional, |
50 Optional, |
37 Set, |
51 Set, |
38 Tuple, |
52 Tuple, |
39 Union, |
53 Union, |
40 ) |
54 ] |
|
55 |
|
56 if TYPE_CHECKING: |
41 from . import localrepo |
57 from . import localrepo |
42 |
58 |
43 assert any( |
59 assert [localrepo] |
44 ( |
|
45 Any, |
|
46 Callable, |
|
47 Dict, |
|
48 Iterable, |
|
49 List, |
|
50 Optional, |
|
51 Set, |
|
52 Tuple, |
|
53 Union, |
|
54 localrepo, |
|
55 ) |
|
56 ) |
|
57 |
60 |
58 subsettable = repoviewutil.subsettable |
61 subsettable = repoviewutil.subsettable |
59 |
62 |
60 calcsize = struct.calcsize |
63 calcsize = struct.calcsize |
61 pack_into = struct.pack_into |
64 pack_into = struct.pack_into |