( )⚙ D11473 util: eliminate the possibility of returning None from `versiontuple()`

This is an archive of the discontinued Mercurial Phabricator instance.

util: eliminate the possibility of returning None from `versiontuple()`
ClosedPublic

Authored by mharbison72 on Sep 21 2021, 11:38 AM.

Details

Summary

This fixes the following error flagged by pytype:

File "/mnt/c/Users/Matt/hg/mercurial/extensions.py", line 228, in load: unsupported operand types for > [unsupported-operands]
  Primitive types 'Optional[tuple]' and 'curver: Optional[tuple]' are not comparable.

Diff Detail

Repository
rHG Mercurial
Branch
default
Lint
No Linters Available
Unit
No Unit Test Coverage