• Matt Harbison's avatar
    typing: add type hints to tortoisehg/hgqt/visdiff.py · b4c2c53d1349
    Matt Harbison authored
    There are a handful of `annotation-type-mismatch` suppressions for constructs
    like a function's Text arg being immediately overwritten with the bytes form of
    the argument.  This is an experimental diagnostic that needs to be explicitly
    enabled in pytype (for now), but such uses also seem to confuse PyCharm.  It
    does seem reasonable to overwrite the argument after converting between bytes
    and unicode, but one such overwrite at the end of the function wasn't as
    useful, so it has been elided away.
    b4c2c53d1349