changeset 6620:35e70a2a66f2

obshistory: give pytype an assert to calm it down
author Anton Shestakov <av6@dwimlabs.net>
date Tue, 26 Dec 2023 16:23:25 -0300
parents 1ee748766685
children 5efde4e19eb7
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/hgext3rd/evolve/obshistory.py	Thu Dec 28 14:21:34 2023 -0300
+++ b/hgext3rd/evolve/obshistory.py	Tue Dec 26 16:23:25 2023 -0300
@@ -265,6 +265,7 @@
 
         super(obsmarker_printer, self).__init__(ui, repo, *args, **kwargs)
         diffopts = kwargs.get('diffopts', {})
+        assert isinstance(diffopts, dict)  # help pytype
         self._includediff = diffopts and diffopts.get(b'patch')
         self.template = diffopts and diffopts.get(b'template')
         self.filter = diffopts and diffopts.get(b'filternonlocal')