D7296: pycompat: kludge around pytype being confused by __new__

dlax (Denis Laxalde) phabricator at mercurial-scm.org
Tue Nov 19 15:14:12 EST 2019


dlax added a comment.


  In D7296#109684 <https://phab.mercurial-scm.org/D7296#109684>, @dlax wrote:
  
  > Looking closer at the error above, it mentions `bytestr.__init__`, not `__new__` (and there is in fact no type annotation for `__new__` in typeshed <https://github.com/python/typeshed/blob/34d68ab0a2117a08fa221d3a10884f35cacf2cdc/stdlib/2and3/builtins.pyi#L559>).
  
  https://github.com/python/typeshed/issues/2630

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D7296/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D7296

To: durin42, #hg-reviewers, indygreg, dlax
Cc: yuja, mjpieters, dlax, indygreg, mercurial-devel


More information about the Mercurial-devel mailing list