This is an archive of the discontinued Mercurial Phabricator instance.

typing: add a couple of assertions to lrucachedict to help pytype
ClosedPublic

Authored by mharbison72 on Dec 15 2019, 11:12 PM.

Details

Summary

Fixes the following warnings:

line 1488, in pop: No attribute 'markempty' on None [attribute-error]
     In Optional[Union[Any, _lrucachenode, nothing]]
line 1578, in popoldest: No attribute 'markempty' on None [attribute-error]
     In Optional[Union[Any, _lrucachenode, nothing]]

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.