def lsp_symbol_information(name: Name) -> SymbolInformation: """Get LSP SymbolInformation from Jedi definition.""" return SymbolInformation( name=name.name, kind=get_lsp_symbol_type(name.type), location=lsp_location(name), container_name=name.parent(), )
def lsp_symbol_information(name: Name) -> SymbolInformation: """Get LSP SymbolInformation from Jedi definition.""" return SymbolInformation( name=name.name, kind=get_lsp_symbol_type(name.type), location=lsp_location(name), container_name=("None" if name is None else (name.full_name or name.name or "None")), )