changeset 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 5efde4e19eb7
children 35dc0ef481a5
files hgext3rd/topic/__init__.py
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
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):