> For the complete documentation index, see [llms.txt](https://docs.r.xyz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.r.xyz/glider-ide/api/variables/localvariables/localvariable/localvariable.get_parent.md).

# LocalVariable.get\_parent()

Returns parent function/modifier of the local variable.

`get_parent() →` [`Callable`](/glider-ide/api/callable.md)

## Query Example

```python
from glider import *


def query():
  functions = (
    Functions()
    .with_name("communityMint")
    .exec(1)
  )

  for func in functions:
    local_vars = func.local_variables().list()
    for local_var in local_vars:
      print(local_var.get_parent())

  return functions
```

## Example Output

<figure><img src="https://2237101709-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDX4Ojc4j1ef51TUAtYOx%2Fuploads%2FhT8Y6Y0Tnj8twNWZdjLb%2FScreenshot%202025-09-10%20at%204.03.52%E2%80%AFPM.png?alt=media&amp;token=5f15f7d0-6e35-4584-8356-722da6f3ea25" alt=""><figcaption></figcaption></figure>
