comparison tests/test-check-pytype.t @ 48480:cfb4f1dee978

pytype: stop excluding wireprotov2server.py This fixes: File "/mnt/c/Users/Matt/hg/mercurial/wireprotov2server.py", line 584, in _capabilitiesv2: unsupported operand type(s) for item assignment: Set[bytes] [unsupported-operands] No attribute '__setitem__' on Set[bytes] File "/mnt/c/Users/Matt/hg/mercurial/wireprotov2server.py", line 611, in _capabilitiesv2: No attribute 'append' on dict [attribute-error] In Union[List[bytes], List[nothing], dict] Called from (traceback): line 543, in httpv2apidescriptor Differential Revision: https://phab.mercurial-scm.org/D11919
author Matt Harbison <matt_harbison@yahoo.com>
date Mon, 13 Dec 2021 16:42:36 -0500
parents dcdecec401ca
children d2fff292c265
comparison
equal deleted inserted replaced
48479:dcdecec401ca 48480:cfb4f1dee978
42 mercurial/win32.py # [not-callable] 42 mercurial/win32.py # [not-callable]
43 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error] 43 mercurial/wireprotoframing.py # [unsupported-operands], [attribute-error], [import-error]
44 mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error] 44 mercurial/wireprotoserver.py # line 253, in _availableapis: No attribute '__iter__' on Callable[[Any, Any], Any] [attribute-error]
45 mercurial/wireprotov1peer.py # [attribute-error] 45 mercurial/wireprotov1peer.py # [attribute-error]
46 mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs 46 mercurial/wireprotov1server.py # BUG?: BundleValueError handler accesses subclass's attrs
47 mercurial/wireprotov2server.py # [unsupported-operands], [attribute-error]
48 47
49 TODO: use --no-cache on test server? Caching the files locally helps during 48 TODO: use --no-cache on test server? Caching the files locally helps during
50 development, but may be a hinderance for CI testing. 49 development, but may be a hinderance for CI testing.
51 50
52 $ pytype -V 3.6 --keep-going --jobs auto mercurial \ 51 $ pytype -V 3.6 --keep-going --jobs auto mercurial \
83 > -x mercurial/win32.py \ 82 > -x mercurial/win32.py \
84 > -x mercurial/wireprotoframing.py \ 83 > -x mercurial/wireprotoframing.py \
85 > -x mercurial/wireprotoserver.py \ 84 > -x mercurial/wireprotoserver.py \
86 > -x mercurial/wireprotov1peer.py \ 85 > -x mercurial/wireprotov1peer.py \
87 > -x mercurial/wireprotov1server.py \ 86 > -x mercurial/wireprotov1server.py \
88 > -x mercurial/wireprotov2server.py \
89 > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt 87 > > $TESTTMP/pytype-output.txt || cat $TESTTMP/pytype-output.txt
90 88
91 Only show the results on a failure, because the output on success is also 89 Only show the results on a failure, because the output on success is also
92 voluminous and variable. 90 voluminous and variable.