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
fix(codegen-python): emit Any (not str) for field.string @dbColumnType:jsonb (#98)
pg8000 auto-decodes a jsonb column to a native Python object (dict/list/
scalar) at read time, so typing a field.string @dbColumnType:jsonb field as
`str` in the generated Pydantic model is a type lie (the runtime return-type
integration test already asserts the value is a dict). Emit `Any` instead —
the Python analogue of the TS z.unknown() fix in #97 — threading
`from typing import Any` into the module imports via the existing PyType
import mechanism. field.object @storage:jsonb (structured VO) and
field.string @dbColumnType:uuid are unaffected.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LuZWKnWzYGVnESijL7uuky
0 commit comments