diff hgext3rd/topic/__init__.py @ 6622:b669ded0fe00

topic: assert repo reference is not immediately None to help pytype
author Anton Shestakov <av6@dwimlabs.net>
date Sun, 31 Dec 2023 16:59:26 -0300
parents 9107d91de94e
children 7771e80a7280
line wrap: on
line diff
--- a/hgext3rd/topic/__init__.py	Thu Dec 28 14:19:54 2023 -0300
+++ b/hgext3rd/topic/__init__.py	Sun Dec 31 16:59:26 2023 -0300
@@ -885,6 +885,7 @@
 
             def _validate_affected_tns(tr2):
                 repo = reporef()
+                assert repo is not None  # help pytype
                 find_affected_tns(repo, tr2)
 
             def validator(tr2):