You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
Not sure if this exists with other IDEs but in PyCharm after migrating codebase to 0.20.0, all of my database queries are getting a warning "Unresolved attribute reference 'objects' for class"
The program works, but the warnings stop me from seeing any code completion or documentation in the editor.
For example:
count = await Player.objects.count()
PyCharm is unhappy: Unresolved attribute reference 'objects' for class 'Player'
To Reproduce
Steps to reproduce the behavior:
db.py
base_ormar_config = ormar.OrmarConfig(
database=databases.Database(DATABASE_URL),
metadata=sqlalchemy.MetaData(),
engine=sqlalchemy.create_engine(DATABASE_URL),
)
class Player(ormar.Model):
ormar_config = base_ormar_config.copy()
uid: int = ormar.BigInteger(primary_key=True)
count.py pcount = await Player.objects.count()
Expected behavior
No warnings
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
Database backend: SQLITE
Python version: 3.12
ormar version: 0.20.0
pydantic version: 2.7.0b1
The text was updated successfully, but these errors were encountered:
Describe the bug
Not sure if this exists with other IDEs but in PyCharm after migrating codebase to 0.20.0, all of my database queries are getting a warning "Unresolved attribute reference 'objects' for class"
The program works, but the warnings stop me from seeing any code completion or documentation in the editor.
For example:
count = await Player.objects.count()
PyCharm is unhappy: Unresolved attribute reference 'objects' for class 'Player'
To Reproduce
Steps to reproduce the behavior:
db.py
count.py
pcount = await Player.objects.count()
Expected behavior
No warnings
Screenshots
If applicable, add screenshots to help explain your problem.
Versions (please complete the following information):
ormar
version: 0.20.0pydantic
version: 2.7.0b1The text was updated successfully, but these errors were encountered: