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] = []  
```

0

Please sign in to leave a comment.