Open bMorgan01 opened 11 months ago
I have a project with this structure:
pyreverse_test __init__.py a.py b.py
a.py contains:
class A: def __init__(self) -> None: self.var = 2
b.py contains:
from a import A class B: def __init__(self) -> None: self.a_obj: A = A()
Running pyreverse yields this result:
No response
Working directory: pyreverse_test
pyreverse . -f ALL -o png
Format png is not supported natively. Pyreverse will try to generate it using Graphviz... Analysed 3 modules with a total of 1 imports
I expect the result to match this, un-separated, code.
class A: def __init__(self) -> None: self.var = 2 class B: def __init__(self) -> None: self.a_obj: A = A()
Which is this:
pylint 3.0.2 astroid 3.0.1 Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)]
Windows 10 / powershell
This works in some cases but not others. I have no idea why.
Bug description
I have a project with this structure:
a.py contains:
b.py contains:
Running pyreverse yields this result:
Configuration
No response
Command used
Working directory: pyreverse_test
Pylint output
Expected behavior
I expect the result to match this, un-separated, code.
Which is this:
Pylint version
OS / Environment
Windows 10 / powershell
Additional dependencies
No response