D7296: pycompat: kludge around pytype being confused by __new__

dlax (Denis Laxalde) phabricator at mercurial-scm.org
Thu Nov 14 06:05:26 EST 2019


dlax added a comment.


    class bytestr(bytes):  # type: (Union[bytes,str]) -> bytestr
      [...]
  
  Does this work?

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
Cc: mjpieters, dlax, indygreg, mercurial-devel


More information about the Mercurial-devel mailing list