# Bug report

### Bug description:

Running this file:

```python
import symtable

st = symtable.symtable("""
class X:
    class Nested: pass
    type Alias = int
    x = (x for x in range(10))
    y = filter(lambda z: z % 2, range(10))
""", "mod", "exec")

cls = st.get_children()[0]
print(cls.get_methods())
```

Prints:

```
('Nested', 'Alias', 'genexpr', 'lambda')
```

None of these are methods.

@carljm and I noticed this as part of the work on PEP 649 (https://github.com/python/cpython/pull/119361#discussion_r1617999479). My draft implementation excludes generated `__annotate__` functions from the list of "methods", but perhaps all non-methods should be excluded.

### CPython versions tested on:

3.12, CPython main branch

### Operating systems tested on:

macOS

<!-- gh-linked-prs -->
### Linked PRs
* gh-120148
* gh-120151
* gh-120776
* gh-120777
* gh-120779
* gh-121802
* gh-121902
* gh-121909
* gh-121910
<!-- /gh-linked-prs -->

symtable.Class.get_methods() returns non-methods
This is a GitHub Issue
repo:cpython
owner:python
Title : symtable.Class.get_methods() returns non-methods
Issue date:

--- start body ---
# Bug report

### Bug description:

Running this file:

```python
import symtable

st = symtable.symtable("""
class X:
    class Nested: pass
    type Alias = int
    x = (x for x in range(10))
    y = filter(lambda z: z % 2, range(10))
""", "mod", "exec")

cls = st.get_children()[0]
print(cls.get_methods())
```

Prints:

```
('Nested', 'Alias', 'genexpr', 'lambda')
```

None of these are methods.

@carljm and I noticed this as part of the work on PEP 649 (https://github.com/python/cpython/pull/119361#discussion_r1617999479). My draft implementation excludes generated `__annotate__` functions from the list of "methods", but perhaps all non-methods should be excluded.

### CPython versions tested on:

3.12, CPython main branch

### Operating systems tested on:

macOS

<!-- gh-linked-prs -->
### Linked PRs
* gh-120148
* gh-120151
* gh-120776
* gh-120777
* gh-120779
* gh-121802
* gh-121902
* gh-121909
* gh-121910
<!-- /gh-linked-prs -->

--- end body ---
