Alexandr Makurin
Alexandr Makurin
It's better to use [Session.get](https://docs.sqlalchemy.org/en/14/orm/session_api.html#sqlalchemy.orm.Session.get) because [Query.get](https://docs.sqlalchemy.org/en/14/orm/query.html#sqlalchemy.orm.Query.get) is deprecated since SQLAlchemy 1.4. ```python def get(self, db: Session, id: Any) -> Optional[ModelType]: return db.get(self.model, id) ``` ```python def remove(self, db: Session,...
But built-in git extension doesn't allow to change commit message, only commit files.
As I can understand, SQLModel uses [in development standard](https://github.com/microsoft/pyright/blob/main/specs/dataclass_transforms.md) supported by pyright.
So, maybe, tortoise-orm can use it too?
Same problem. Xigma Nas 11.0.4
To install dependencies of an environment you can add a script with an empty body: hatch.toml ```toml [envs.some-environment.scripts] update-deps = "" ``` Then use it in Dockerfile like so: ```dockerfile...
Maybe, I'm not sure. Sorry if I was wrong
@Chiggy-Playz I'm using it right now on one of my projects
Commit where I migrate from handmade version to library version: https://github.com/Ae-Mc/climbing-app-backend/commit/f2516e71f0c4e8ba11d96b7b2f54decc3481992b Look at files [climbing/api/api_v1/endpoints/auth.py](https://github.com/Ae-Mc/climbing-app-backend/commit/f2516e71f0c4e8ba11d96b7b2f54decc3481992b#diff-07618f252a6b420dc2b970a4da50e14a81febff7d75ac39a88cde48545c0ad6f) [climbing/core/security.py](https://github.com/Ae-Mc/climbing-app-backend/commit/f2516e71f0c4e8ba11d96b7b2f54decc3481992b#diff-4650f815f09f75b823f0303f4327ce79ee08be77d1fbd3213dfaf0089c17c637) [climbing/db/models/user.py](https://github.com/Ae-Mc/climbing-app-backend/commit/f2516e71f0c4e8ba11d96b7b2f54decc3481992b#diff-6952e1f7ac95619b9c4cb72160acb5e0796db150d15797ec5a88a42cfd2ea681) [climbing/db/session.py](https://github.com/Ae-Mc/climbing-app-backend/commit/f2516e71f0c4e8ba11d96b7b2f54decc3481992b#diff-290a7b4ee7e87e8033f877ebc2eaddcd6f3f28a9f1fd737b3e31a78c32836f3a) [pyproject.toml](https://github.com/Ae-Mc/climbing-app-backend/commit/f2516e71f0c4e8ba11d96b7b2f54decc3481992b#diff-50c86b7ed8ac2cf95bd48334961bf0530cdc77b5a56f852c5c61b89d735fd711)