diff mercurial/upgrade_utils/actions.py @ 51285:8b2ea2246a5f

pytype: convert type comment for inline variable too Same logic as for the previous changeset, but for "type comment" annotating variables, not function/method. As for the previous changeset, we had to adjust for of the types to actually match what was happening.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 20 Dec 2023 11:23:09 +0100
parents 9d3721552b6c
children 3a7ef1398385
line wrap: on
line diff
--- a/mercurial/upgrade_utils/actions.py	Tue Dec 19 21:29:34 2023 +0100
+++ b/mercurial/upgrade_utils/actions.py	Wed Dec 20 11:23:09 2023 +0100
@@ -108,7 +108,7 @@
     compatible_with_share = False
 
 
-allformatvariant = []  # type: List[Type['formatvariant']]
+allformatvariant: List[Type['formatvariant']] = []
 
 
 def registerformatvariant(cls):