phi-friday

Results 7 comments of phi-friday

All defined tables(not model, need table=True) are stored in tables({tablename: Table} mapping) of MetaData in the SQLModel class. After you find the table you want, you only need to create...

Is it an error that occurred after attempting to create a table?

add line `assert model.id is not None` before declare variable id `id = model.id`

use ```Session.exec``` -> ```Session.execute``` ```sqlmodel.select``` -> ```sqlalchemy.select``` ex: ```python from typing import ClassVar, Optional from sqlalchemy import select from sqlmodel import Field, Session, SQLModel, create_engine, func class Score(SQLModel, table=True): __tablename__:...

I don't think it's a good solution, but it seems to work for now. ```python from typing import Tuple, Dict, Any, Union, Type from traceback import format_exception_only from sqlmodel.main import...

First, I created it. https://github.com/phi-friday/joblib-stubs However, it was only confirmed on pyright (pylance to be exact).

The biggest difference I think is that `expression` supports `pylance`, but `returns` only supports `mypy`.