@@ -632,7 +632,7 @@ def _visit_overloaded_func_def(self, defn: OverloadedFuncDef) -> None:
632632 if not defn .items :
633633 # In this case we have already complained about none of these being
634634 # valid overloads.
635- return None
635+ return
636636 if len (defn .items ) == 1 :
637637 self .fail (message_registry .MULTIPLE_OVERLOADS_REQUIRED , defn )
638638
@@ -676,7 +676,6 @@ def _visit_overloaded_func_def(self, defn: OverloadedFuncDef) -> None:
676676 self .msg .no_overridable_method (defn .name , defn )
677677 self .check_explicit_override_decorator (defn , found_method_base_classes , defn .impl )
678678 self .check_inplace_operator_method (defn )
679- return None
680679
681680 def extract_callable_type (self , inner_type : Type | None , ctx : Context ) -> CallableType | None :
682681 """Get type as seen by an overload item caller."""
@@ -1838,7 +1837,7 @@ def check_match_args(self, var: Var, typ: Type, context: Context) -> None:
18381837 return
18391838 typ = get_proper_type (typ )
18401839 if not isinstance (typ , TupleType ) or not all (
1841- [ is_string_literal (item ) for item in typ .items ]
1840+ is_string_literal (item ) for item in typ .items
18421841 ):
18431842 self .msg .note (
18441843 "__match_args__ must be a tuple containing string literals for checking "
@@ -5045,7 +5044,7 @@ def visit_break_stmt(self, s: BreakStmt) -> None:
50455044
50465045 def visit_continue_stmt (self , s : ContinueStmt ) -> None :
50475046 self .binder .handle_continue ()
5048- return None
5047+ return
50495048
50505049 def visit_match_stmt (self , s : MatchStmt ) -> None :
50515050 with self .binder .frame_context (can_skip = False , fall_through = 0 ):
0 commit comments