dropbox / dropbox/sqlalchemy-stubs

Many to one relationship not recognised as list

Open
#152 3 comments 4 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
583
Forks
96
PR merge metrics
No merged PRs in 30d

Description

The accounts object is not recognised as a list, when it is a many to one relationship. Am I doing something wrong here?

```

if TYPE_CHECKING:
from .account import Account # noqa: F401

class User(Base):
id = Column(Integer, primary_key=True, index=True)
accounts = relationship("Account", cascade="all,delete", backref="user")
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.