[Updated] D11926: pytype: stop excluding chgserver.py
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Fri Dec 17 11:11:57 UTC 2021
Closed by commit rHG7caaefa48794: pytype: stop excluding chgserver.py (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11926?vs=31491&id=31519
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11926/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11926
AFFECTED FILES
mercurial/chgserver.py
tests/test-check-pytype.t
CHANGE DETAILS
diff --git a/tests/test-check-pytype.t b/tests/test-check-pytype.t
--- a/tests/test-check-pytype.t
+++ b/tests/test-check-pytype.t
@@ -10,7 +10,6 @@
probably hiding real problems.
mercurial/bundlerepo.py # no vfs and ui attrs on bundlerepo
-mercurial/chgserver.py # [attribute-error]
mercurial/context.py # many [attribute-error]
mercurial/crecord.py # tons of [attribute-error], [module-attr]
mercurial/debugcommands.py # [wrong-arg-types]
@@ -46,7 +45,6 @@
$ pytype -V 3.6 --keep-going --jobs auto mercurial \
> -x mercurial/bundlerepo.py \
- > -x mercurial/chgserver.py \
> -x mercurial/context.py \
> -x mercurial/crecord.py \
> -x mercurial/debugcommands.py \
diff --git a/mercurial/chgserver.py b/mercurial/chgserver.py
--- a/mercurial/chgserver.py
+++ b/mercurial/chgserver.py
@@ -643,6 +643,13 @@
def __init__(self, ui):
self.ui = ui
+
+ # TODO: use PEP 526 syntax (`_hashstate: hashstate` at the class level)
+ # when 3.5 support is dropped.
+ self._hashstate = None # type: hashstate
+ self._baseaddress = None # type: bytes
+ self._realaddress = None # type: bytes
+
self._idletimeout = ui.configint(b'chgserver', b'idletimeout')
self._lastactive = time.time()
To: mharbison72, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211217/8c0a503a/attachment-0002.html>
More information about the Mercurial-patches
mailing list