@@ -526,12 +526,16 @@ def check_second_pass(
526526 # print("XXX in pass %d, class %s, function %s" %
527527 # (self.pass_num, type_name, node.fullname or node.name))
528528 done .add (node )
529- with self .tscope .class_scope (
530- active_typeinfo
531- ) if active_typeinfo else nullcontext ():
532- with self .scope .push_class (
533- active_typeinfo
534- ) if active_typeinfo else nullcontext ():
529+ with (
530+ self .tscope .class_scope (active_typeinfo )
531+ if active_typeinfo
532+ else nullcontext ()
533+ ):
534+ with (
535+ self .scope .push_class (active_typeinfo )
536+ if active_typeinfo
537+ else nullcontext ()
538+ ):
535539 self .check_partial (node )
536540 return True
537541
@@ -3802,9 +3806,11 @@ def check_multi_assignment_from_tuple(
38023806 if star_lv :
38033807 list_expr = ListExpr (
38043808 [
3805- self .temp_node (rv_type , context )
3806- if not isinstance (rv_type , UnpackType )
3807- else StarExpr (self .temp_node (rv_type .type , context ))
3809+ (
3810+ self .temp_node (rv_type , context )
3811+ if not isinstance (rv_type , UnpackType )
3812+ else StarExpr (self .temp_node (rv_type .type , context ))
3813+ )
38083814 for rv_type in star_rv_types
38093815 ]
38103816 )
@@ -6593,8 +6599,7 @@ def check_subtype(
65936599 notes : list [str ] | None = None ,
65946600 code : ErrorCode | None = None ,
65956601 outer_context : Context | None = None ,
6596- ) -> bool :
6597- ...
6602+ ) -> bool : ...
65986603
65996604 @overload
66006605 def check_subtype (
@@ -6608,8 +6613,7 @@ def check_subtype(
66086613 * ,
66096614 notes : list [str ] | None = None ,
66106615 outer_context : Context | None = None ,
6611- ) -> bool :
6612- ...
6616+ ) -> bool : ...
66136617
66146618 def check_subtype (
66156619 self ,
@@ -7083,14 +7087,12 @@ def conditional_types_with_intersection(
70837087 type_ranges : list [TypeRange ] | None ,
70847088 ctx : Context ,
70857089 default : None = None ,
7086- ) -> tuple [Type | None , Type | None ]:
7087- ...
7090+ ) -> tuple [Type | None , Type | None ]: ...
70887091
70897092 @overload
70907093 def conditional_types_with_intersection (
70917094 self , expr_type : Type , type_ranges : list [TypeRange ] | None , ctx : Context , default : Type
7092- ) -> tuple [Type , Type ]:
7093- ...
7095+ ) -> tuple [Type , Type ]: ...
70947096
70957097 def conditional_types_with_intersection (
70967098 self ,
@@ -7348,15 +7350,13 @@ def visit_type_var(self, t: TypeVarType) -> None:
73487350@overload
73497351def conditional_types (
73507352 current_type : Type , proposed_type_ranges : list [TypeRange ] | None , default : None = None
7351- ) -> tuple [Type | None , Type | None ]:
7352- ...
7353+ ) -> tuple [Type | None , Type | None ]: ...
73537354
73547355
73557356@overload
73567357def conditional_types (
73577358 current_type : Type , proposed_type_ranges : list [TypeRange ] | None , default : Type
7358- ) -> tuple [Type , Type ]:
7359- ...
7359+ ) -> tuple [Type , Type ]: ...
73607360
73617361
73627362def conditional_types (
0 commit comments