Mercurial > hg
comparison mercurial/branchmap.py @ 51290:f4a0806081f2
pytype: drop the now useless assert
As the imported types are now used by type annotation, these ugly assert are
no longer needed.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 20 Dec 2023 22:17:03 +0100 |
parents | f15cb5111a1e |
children | 02e7d79edf62 |
comparison
equal
deleted
inserted
replaced
51289:7bd7fcc711f2 | 51290:f4a0806081f2 |
---|---|
13 hex, | 13 hex, |
14 nullrev, | 14 nullrev, |
15 ) | 15 ) |
16 | 16 |
17 from typing import ( | 17 from typing import ( |
18 Any, | |
19 Callable, | 18 Callable, |
20 Dict, | 19 Dict, |
21 Iterable, | 20 Iterable, |
22 List, | 21 List, |
23 Optional, | 22 Optional, |
37 | 36 |
38 from .utils import ( | 37 from .utils import ( |
39 repoviewutil, | 38 repoviewutil, |
40 stringutil, | 39 stringutil, |
41 ) | 40 ) |
42 | |
43 # keeps pyflakes happy | |
44 assert [ | |
45 Any, | |
46 Callable, | |
47 Dict, | |
48 Iterable, | |
49 List, | |
50 Optional, | |
51 Set, | |
52 Tuple, | |
53 Union, | |
54 ] | |
55 | 41 |
56 if TYPE_CHECKING: | 42 if TYPE_CHECKING: |
57 from . import localrepo | 43 from . import localrepo |
58 | 44 |
59 assert [localrepo] | 45 assert [localrepo] |