Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Prev Previous commit
Next Next commit
Merge branch 'master' into untyped-def-end-line
  • Loading branch information
JelleZijlstra authored Jun 2, 2024
commit 38f311a1b11226d26040bdc5d1613039ac883fcc
2 changes: 1 addition & 1 deletion mypy/fastparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -1021,7 +1021,7 @@ def do_func_def(
self.class_and_function_stack.pop()
self.class_and_function_stack.append("F")
body = self.as_required_block(n.body, can_strip=True, is_coroutine=is_coroutine)
func_def = FuncDef(n.name, args, body, func_type)
func_def = FuncDef(n.name, args, body, func_type, explicit_type_params)
func_def.def_end_line = def_end_line
func_def.def_end_column = def_end_column

Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.