Show More
@@ -54,7 +54,6 pytype --version | |||||
54 | # mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr] |
|
54 | # mercurial/hgweb/server.py # [attribute-error], [name-error], [module-attr] | |
55 | # mercurial/hgweb/wsgicgi.py # confused values in os.environ |
|
55 | # mercurial/hgweb/wsgicgi.py # confused values in os.environ | |
56 | # mercurial/httppeer.py # [attribute-error], [wrong-arg-types] |
|
56 | # mercurial/httppeer.py # [attribute-error], [wrong-arg-types] | |
57 | # mercurial/interfaces # No attribute 'capabilities' on peer [attribute-error] |
|
|||
58 | # mercurial/keepalive.py # [attribute-error] |
|
57 | # mercurial/keepalive.py # [attribute-error] | |
59 | # mercurial/localrepo.py # [attribute-error] |
|
58 | # mercurial/localrepo.py # [attribute-error] | |
60 | # mercurial/minirst.py # [unsupported-operands], [attribute-error] |
|
59 | # mercurial/minirst.py # [unsupported-operands], [attribute-error] | |
@@ -115,7 +114,6 pytype --keep-going --jobs auto \ | |||||
115 | -x mercurial/hgweb/server.py \ |
|
114 | -x mercurial/hgweb/server.py \ | |
116 | -x mercurial/hgweb/wsgicgi.py \ |
|
115 | -x mercurial/hgweb/wsgicgi.py \ | |
117 | -x mercurial/httppeer.py \ |
|
116 | -x mercurial/httppeer.py \ | |
118 | -x mercurial/interfaces \ |
|
|||
119 | -x mercurial/keepalive.py \ |
|
117 | -x mercurial/keepalive.py \ | |
120 | -x mercurial/localrepo.py \ |
|
118 | -x mercurial/localrepo.py \ | |
121 | -x mercurial/minirst.py \ |
|
119 | -x mercurial/minirst.py \ |
@@ -405,7 +405,9 class peer: | |||||
405 | self.path = path |
|
405 | self.path = path | |
406 |
|
406 | |||
407 | def capable(self, name): |
|
407 | def capable(self, name): | |
408 | caps = self.capabilities() |
|
408 | # TODO: this class should maybe subclass ipeercommands too, otherwise it | |
|
409 | # is assuming whatever uses this as a mixin also has this interface. | |||
|
410 | caps = self.capabilities() # pytype: disable=attribute-error | |||
409 | if name in caps: |
|
411 | if name in caps: | |
410 | return True |
|
412 | return True | |
411 |
|
413 |
General Comments 0
You need to be logged in to leave comments.
Login now