##// END OF EJS Templates
typing: enable pytype processing on mercurial/upgrade_utils/actions.py...
Matt Harbison -
r47769:e050efe9 stable
parent child Browse files
Show More
@@ -5,15 +5,13 b''
5 # This software may be used and distributed according to the terms of the
5 # This software may be used and distributed according to the terms of the
6 # GNU General Public License version 2 or any later version.
6 # GNU General Public License version 2 or any later version.
7
7
8 # See https://github.com/google/pytype/issues/860
9 # pytype: skip-file
10
11 from __future__ import absolute_import
8 from __future__ import absolute_import
12
9
13 from ..i18n import _
10 from ..i18n import _
14 from .. import (
11 from .. import (
15 error,
12 error,
16 localrepo,
13 localrepo,
14 pycompat,
17 requirements,
15 requirements,
18 revlog,
16 revlog,
19 util,
17 util,
@@ -21,6 +19,13 b' from .. import ('
21
19
22 from ..utils import compression
20 from ..utils import compression
23
21
22 if pycompat.TYPE_CHECKING:
23 from typing import (
24 List,
25 Type,
26 )
27
28
24 # list of requirements that request a clone of all revlog if added/removed
29 # list of requirements that request a clone of all revlog if added/removed
25 RECLONES_REQUIREMENTS = {
30 RECLONES_REQUIREMENTS = {
26 requirements.GENERALDELTA_REQUIREMENT,
31 requirements.GENERALDELTA_REQUIREMENT,
@@ -110,7 +115,7 b' class improvement(object):'
110 return hash(self.name)
115 return hash(self.name)
111
116
112
117
113 allformatvariant = []
118 allformatvariant = [] # type: List[Type['formatvariant']]
114
119
115
120
116 def registerformatvariant(cls):
121 def registerformatvariant(cls):
General Comments 0
You need to be logged in to leave comments. Login now