Roman Koshel
Roman Koshel
Also wrong identation with VALUES statement ``` python In [5]: sqlparse.__version__ Out[5]: '0.2.1.dev0' In [6]: query = "insert into settings (name, value) values (1,1), (2,2), (3,3)" In [7]: print(sqlparse.format(query, reindent=True,...
@yzongyue thanks for help. But M.l is a list type so i expect it is possible to have more than one value, example ```m.l = ['a', 'b']```
And Any with model_dump_json not works also ``` import itertools from typing import Any from pydantic import BaseModel class M(BaseModel): x: Any m = M(x=[1]) m.model_dump() # ok m.model_dump_json() #...
@Viicos i try to define field that accept both` list[int]` and `itertools.repeat` and `.model_dump` returns original value without modification or unwraping infinity `itertools.repeat` This example works(not freezing) ``` class M(BaseModel):...
Hi! I have this problem too ( This can greatly degrade performance for the complex models with validators or endpoints that return a large number of items. In example below...
Hi! Maybe? :) ```python class Item(Struct): id: int x: str y: str @view(exclude={"id"}) class Create(Struct): x: Annotated[str, Meta(min_length=1)] # override type for additional validation @view class Update(Struct): x: Annotated[str, Meta(min_length=1)]...