fix lineno

This commit is contained in:
Khaleel Al-Adhami 2025-01-17 15:15:09 -08:00
parent 0e539a208c
commit c6f05bb320

View File

@ -643,13 +643,7 @@ def _generate_component_create_functiondef(
), ),
], ],
returns=ast.Constant(value=clz.__name__), returns=ast.Constant(value=clz.__name__),
**( lineno=node.lineno if node is not None else None, # pyright: ignore[reportArgumentType]
{
"lineno": node.lineno,
}
if node is not None
else {}
),
) )
return definition return definition
@ -703,13 +697,7 @@ def _generate_staticmethod_call_functiondef(
type_hint_globals, type_hint_globals,
) )
), ),
**( lineno=node.lineno if node is not None else None, # pyright: ignore[reportArgumentType]
{
"lineno": node.lineno,
}
if node is not None
else {}
),
) )
return definition return definition