Ruslan Bel'kov

Results 42 comments of Ruslan Bel'kov

Sorry for huge amount of code in screenshots, I'm in haste...

@koxudaxi, I guess problem is that [Beanie](https://beanie-odm.dev/) uses model fields as class attributes. ```python3 from beanie import Document, init_beanie from motor.motor_asyncio import AsyncIOMotorClient class Car(Document): car_number: int async def read_by_car_number(car_number:...

The simplest solution is to add a switch to the plugin settings for "Always allow model fields to be used as class variables".

I found where is magic. [beanie.odm.utils.init.py#L372](https://github.com/roman-right/beanie/blob/fc79936b9816e80981bfdfbe222fc45abf157b29/beanie/odm/utils/init.py#L372) ```python3 class Initializer: def init_document_fields(self, cls) -> None: """ Init class fields :return: None """ if not IS_PYDANTIC_V2: self.update_forward_refs(cls) if cls._link_fields is None: cls._link_fields...

May it be related to code from #919 ?

@koxudaxi What should I look into to try to fix this?

> @dantetemplar Did you find a solution? Nope :6 By the way, How to downgrade plugin in jetbrains?

Are you sure? @QianZhu https://github.com/lancedb/lancedb/blob/bcfc93cc889b1f3285f0aadb4921bf0625abeb43/python/python/lancedb/table.py#L833 This issue should be reopened

You can go further: https://github.com/simdjson/simdjson