@@ -85,9 +85,7 @@ class BuildType:
8585NEW_GENERIC_SYNTAX : Final = "NewGenericSyntax"
8686INLINE_TYPEDDICT : Final = "InlineTypedDict"
8787TYPE_FORM : Final = "TypeForm"
88- INCOMPLETE_FEATURES : Final = frozenset (
89- (PRECISE_TUPLE_TYPES , INLINE_TYPEDDICT , TYPE_FORM )
90- )
88+ INCOMPLETE_FEATURES : Final = frozenset ((PRECISE_TUPLE_TYPES , INLINE_TYPEDDICT , TYPE_FORM ))
9189COMPLETE_FEATURES : Final = frozenset ((TYPE_VAR_TUPLE , UNPACK , NEW_GENERIC_SYNTAX ))
9290
9391
@@ -473,10 +471,7 @@ def process_error_codes(self, *, error_callback: Callable[[str], Any]) -> None:
473471 self .disabled_error_codes -= self .enabled_error_codes
474472
475473 def process_incomplete_features (
476- self ,
477- * ,
478- error_callback : Callable [[str ], Any ],
479- warning_callback : Callable [[str ], Any ],
474+ self , * , error_callback : Callable [[str ], Any ], warning_callback : Callable [[str ], Any ]
480475 ) -> None :
481476 # Validate incomplete features.
482477 for feature in self .enable_incomplete_feature :
@@ -551,12 +546,8 @@ def build_per_module_cache(self) -> None:
551546 # than foo.bar.*.
552547 # (A section being "processed last" results in its config "winning".)
553548 # Unstructured glob configs are stored and are all checked for each module.
554- unstructured_glob_keys = [
555- k for k in self .per_module_options .keys () if "*" in k [:- 1 ]
556- ]
557- structured_keys = [
558- k for k in self .per_module_options .keys () if "*" not in k [:- 1 ]
559- ]
549+ unstructured_glob_keys = [k for k in self .per_module_options .keys () if "*" in k [:- 1 ]]
550+ structured_keys = [k for k in self .per_module_options .keys () if "*" not in k [:- 1 ]]
560551 wildcards = sorted (k for k in structured_keys if k .endswith (".*" ))
561552 concrete = [k for k in structured_keys if not k .endswith (".*" )]
562553
@@ -574,9 +565,7 @@ def build_per_module_cache(self) -> None:
574565 # on inheriting from parent configs.
575566 options = self .clone_for_module (key )
576567 # And then update it with its per-module options.
577- self ._per_module_cache [key ] = options .apply_changes (
578- self .per_module_options [key ]
579- )
568+ self ._per_module_cache [key ] = options .apply_changes (self .per_module_options [key ])
580569
581570 # Add the more structured sections into unused configs, since
582571 # they only count as used if actually used by a real module.
0 commit comments