@@ -37,8 +37,8 @@ class FlagRuleBuilderV2:
3737
3838 def __init__ (self , flag_builder : FlagBuilderV2 ):
3939 self ._flag_builder = flag_builder
40- self ._clauses = [] # type: List[dict ]
41- self ._variation = None # type : Optional[int]
40+ self ._clauses : List [ dict ] = [ ]
41+ self ._variation : Optional [int ] = None
4242
4343 def and_match (self , attribute : str , * values ) -> FlagRuleBuilderV2 :
4444 """
@@ -170,11 +170,11 @@ def __init__(self, key: str):
170170 """:param str key: The name of the flag"""
171171 self ._key = key
172172 self ._on = True
173- self ._variations = [] # type: List[Any ]
174- self ._off_variation = None # type : Optional[int]
175- self ._fallthrough_variation = None # type : Optional[int]
176- self ._targets = {} # type : Dict[str, Dict[int, Set[str]]]
177- self ._rules = [] # type: List[FlagRuleBuilderV2 ]
173+ self ._variations : List [ Any ] = [ ]
174+ self ._off_variation : Optional [int ] = None
175+ self ._fallthrough_variation : Optional [int ] = None
176+ self ._targets : Dict [str , Dict [int , Set [str ]]] = {}
177+ self ._rules : List [ FlagRuleBuilderV2 ] = [ ]
178178
179179 # Note that _copy is private by convention, because we don't want developers to
180180 # consider it part of the public API, but it is still called from TestDataV2.
@@ -703,4 +703,4 @@ def build_synchronizer(self) -> _TestDataSourceV2:
703703
704704 :return: a test data synchronizer
705705 """
706- return _TestDataSourceV2 (self )
706+ return _TestDataSourceV2 (self )
0 commit comments