Class Diagram Auto-generation Issue with Type Hints (List, Union, etc.)
Answered
Hello JetBrains Support Team, I'm experiencing an issue with the automatic class diagram generation feature in PyCharm. When I use type hints like List, Union, etc. for class members, these attributes are not displayed in the generated class diagram. For example:
```python
from typing import List, Optional
from dataclasses import dataclass
@dataclass
class Employee:
employee_id: int
name: str
email: str
class Company:
def __init__(self, name: str, founded_year: int):
self.name: str = name
self.employees: List[Employee] = []
```
Please sign in to leave a comment.
We have a feature request for types on Diagrams: https://youtrack.jetbrains.com/issue/PY-59190/Add-field-type-in-class-diagram-and-dependencies-links
Please vote for it;