@@ -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
@@ -474,10 +472,7 @@ def process_error_codes(self, *, error_callback: Callable[[str], Any]) -> None:
474472 self .enabled_error_codes -= self .disabled_error_codes
475473
476474 def process_incomplete_features (
477- self ,
478- * ,
479- error_callback : Callable [[str ], Any ],
480- warning_callback : Callable [[str ], Any ],
475+ self , * , error_callback : Callable [[str ], Any ], warning_callback : Callable [[str ], Any ]
481476 ) -> None :
482477 # Validate incomplete features.
483478 for feature in self .enable_incomplete_feature :
@@ -552,12 +547,8 @@ def build_per_module_cache(self) -> None:
552547 # than foo.bar.*.
553548 # (A section being "processed last" results in its config "winning".)
554549 # Unstructured glob configs are stored and are all checked for each module.
555- unstructured_glob_keys = [
556- k for k in self .per_module_options .keys () if "*" in k [:- 1 ]
557- ]
558- structured_keys = [
559- k for k in self .per_module_options .keys () if "*" not in k [:- 1 ]
560- ]
550+ unstructured_glob_keys = [k for k in self .per_module_options .keys () if "*" in k [:- 1 ]]
551+ structured_keys = [k for k in self .per_module_options .keys () if "*" not in k [:- 1 ]]
561552 wildcards = sorted (k for k in structured_keys if k .endswith (".*" ))
562553 concrete = [k for k in structured_keys if not k .endswith (".*" )]
563554
@@ -575,9 +566,7 @@ def build_per_module_cache(self) -> None:
575566 # on inheriting from parent configs.
576567 options = self .clone_for_module (key )
577568 # And then update it with its per-module options.
578- self ._per_module_cache [key ] = options .apply_changes (
579- self .per_module_options [key ]
580- )
569+ self ._per_module_cache [key ] = options .apply_changes (self .per_module_options [key ])
581570
582571 # Add the more structured sections into unused configs, since
583572 # they only count as used if actually used by a real module.
0 commit comments