Pyreverse dont take relationship when I type data like List[class]

28 Views Asked by At

Hello I have the following clas

class Page(BaseModel):
    index_page:int
    content:str

class Book(BaseModel):
    name:str
    pages: List[Page] = []

The problem is that when I execute pyreverse it isn't set the relationship between Book and Page

But if I change the class Book to

class Book(BaseModel):
    name:str
    pages: Page

Pyreverse take and draw that relationship

I can imagine that the problem is List typing, but don't know how can I resolve this

Is there anyway of do it?

Thanks

0

There are 0 best solutions below