There will be about 1h of downtime on 2020-03-02 at 13:00 UTC+1 (change of servers and upgrade to Heptapod 0.20.0 final)

  1. 25 Sep, 2020 1 commit
  2. 24 Sep, 2020 1 commit
    • Matt Harbison's avatar
      py3: ensure `qtlib._styles` is `str` · 3b1749989f42
      Matt Harbison authored
      The type hints weren't enough to convince pytype to flag these, but PyCharm did.
      This re-enables the workaround for #810.  I suspect this also explains why there
      were problems customizing colors via config in #5599.
      
      --HG--
      branch : stable
      3b1749989f42
  3. 22 Sep, 2020 1 commit
  4. 15 Sep, 2020 3 commits
  5. 16 Sep, 2020 4 commits
  6. 14 Sep, 2020 1 commit
    • Matt Harbison's avatar
      typing: correct the signature of `hglib.tortoisehgtools()` · 611f2d653e33
      Matt Harbison authored
      Despite pytype's lack of reporting the issue after the previous commit (and I
      even put an assertion there that the object was a `wconfig._wconfig` that it
      ignored), this is the proper documentation for the code.
      
      --HG--
      branch : stable
      611f2d653e33
  7. 13 Sep, 2020 1 commit
    • Matt Harbison's avatar
      typing: add type hints for the ini config · 418a171c2d56
      Matt Harbison authored
      I was hoping that this would cause `hglib.tortoisehgtools()` to be flagged,
      since it doesn't include `_wconfig` in its parameter list.  But for reasons I
      don't understand, it still doesn't.  A `reveal_type(self.ini)` in
      `customtools.ToolsFrame.refresh()` shows pytype knows that it is a
      `Union[mercurial.config.config, tortoisehg.util.wconfig._wconfig]`, but it
      doesn't seem to care about the potential type mismatch.
      
      Adding a type hint to the member attribute is needed to help PyCharm recognize
      the type where it is used, but pytype emits an error that says
      
          using type parameter in variable annotation not supported yet
      
      So, flag it as a TODO for now.
      
      I'm a little unsure about using `Any` for **kwargs, because PEP484[1] says to
      put `**` in front of the actual type for the "short form" hints.  But these are
      heterogeneous types, so that won't work here.  I tried `**Any` and using an
      ellipsis, but pytype flagged both of those as invalid.  It was also OK with
      `Dict[str, Any]`.
      
      [1] https://www.python.org/dev/peps/pep-0484/#suggested-syntax-for-python-2-7-and-straddling-code
      
      --HG--
      branch : stable
      418a171c2d56
  8. 16 Sep, 2020 1 commit
  9. 13 Sep, 2020 1 commit
  10. 14 Sep, 2020 1 commit
  11. 13 Sep, 2020 4 commits
  12. 12 Sep, 2020 8 commits
  13. 11 Sep, 2020 3 commits
  14. 08 Aug, 2020 1 commit
  15. 08 Sep, 2020 1 commit
  16. 01 Sep, 2020 1 commit
  17. 31 Aug, 2020 5 commits
  18. 24 Aug, 2020 2 commits