Skip to content

Initializing DataFrame in __init__ hangs pyreverse #7641

Open
@WilliamMiteff

Description

@WilliamMiteff

Bug description

When creating a custom object that has a variable that is a DataFrame, if that is initialized in the init pyreverse hangs when being ran.

Configuration

No response

Command used

from pandas import DataFrame

class foo():
  def __init__(self):
    bla: DataFrame = DataFrame()


```bash
pyreverse -c foo test.py -o mmd


### Pylint output

```shell
parsing test.py...

Expected behavior

I would expect the process to complete running instead of running until i interrupt it

Pylint version

pylint 2.15.4
astroid 2.12.11
Python 3.9.14 (main, Oct  3 2022, 12:55:59)
[GCC 9.4.0]

OS / Environment

ubuntu 20 (windows 10 wsl)

Additional dependencies

pandas == 1.5.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Lib specific 💅This affect the code from a particular libraryNeeds investigation 🔬A bug or crash where it's not immediately obvious what is happenningpyreverseRelated to pyreverse component

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions