diff --git a/mercurial/wireprotoserver.py b/mercurial/wireprotoserver.py index 12a43f857a11c26da151d078dd9f95a7131c6aef_bWVyY3VyaWFsL3dpcmVwcm90b3NlcnZlci5weQ==..81805bba11f91f7c58a5a0ab5eff461b0ff139b4_bWVyY3VyaWFsL3dpcmVwcm90b3NlcnZlci5weQ== 100644 --- a/mercurial/wireprotoserver.py +++ b/mercurial/wireprotoserver.py @@ -250,7 +250,7 @@ # Registered APIs are made available via config options of the name of # the protocol. for k, v in API_HANDLERS.items(): - section, option = v[b'config'] + section, option = v[b'config'] # pytype: disable=attribute-error if repo.ui.configbool(section, option): apis.add(k) diff --git a/tests/test-check-pytype.t b/tests/test-check-pytype.t index 12a43f857a11c26da151d078dd9f95a7131c6aef_dGVzdHMvdGVzdC1jaGVjay1weXR5cGUudA==..81805bba11f91f7c58a5a0ab5eff461b0ff139b4_dGVzdHMvdGVzdC1jaGVjay1weXR5cGUudA== 100644 --- a/tests/test-check-pytype.t +++ b/tests/test-check-pytype.t @@ -34,7 +34,6 @@ mercurial/utils/memorytop.py # not 3.6 compatible mercurial/win32.py # [not-callable] mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error] -mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error] mercurial/wireprotov1peer.py # [attribute-error] mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs @@ -68,7 +67,6 @@ > -x mercurial/utils/memorytop.py \ > -x mercurial/win32.py \ > -x mercurial/wireprotoframing.py \ - > -x mercurial/wireprotoserver.py \ > -x mercurial/wireprotov1peer.py \ > -x mercurial/wireprotov1server.py \ > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt