Skip to content

Conversation

AWhetter
Copy link
Contributor

Description

Nodes that represent type comments for a function are currently parented to their original ast.FunctionDef parent
but are now correctly parented to their astroid.FunctionDef parent.

Type of Changes

Type
🐛 Bug fix
✨ New feature
🔨 Refactoring
📜 Docs

Related Issue

Closes #851

These nodes used to be parented to their original ast.FunctionDef parent
but are now correctly parented to their astroid.FunctionDef parent.

Closes #851
@PCManticore PCManticore merged commit 599fe72 into master Feb 7, 2021
@PCManticore PCManticore deleted the fix_851 branch February 7, 2021 09:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

calling parent on a node that is part of a type comment returns the (original) _ast module's FunctionDef
2 participants