[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
ffe20ed
19 days ago
by pre-commit-ci[bot]
-0.09%
Update docs for --use-type-alias flag
ebf7f9a
19 days ago
by butvinm
-0.21%
Update README with --use-type-alias flag help
0edae77
19 days ago
by butvinm
-0.02%
Remove CLAUDE.md from repository
2ff188a
19 days ago
by butvinm
+0.48%
Fix cli argument after merge
9c7633e
19 days ago
by butvinm
-0.42%
Merge branch 'main' into use-type-alias
3e3df7d
19 days ago
by butvinm
-0.64%
refactor: Replace RootModel with TypeAlias for msgspec, TypedDict and dataclass
This change replaces RootModel with TypeAlias for non-Pydantic output formats
(msgspec, TypedDict, dataclass). Pydantic models continue to use RootModel
when --use-type-alias is not specified.
Changes:
- Remove generic RootModel class and template (only used by non-Pydantic formats)
- Update msgspec, dataclass, and TypedDict to always use TypeAlias for root models
- Update test expectations for these output formats to use TypeAlias
- Simplify model selection logic in get_data_model_types() for these formats
Note: Pydantic v1/v2 models retain their existing behavior and can still
generate RootModel when appropriate.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
0e07ba4
18 days ago
by butvinm
-0.49%
Rename templates
323e347
18 days ago
by butvinm
+1.31%
Revert changes of GraphQL tests where we force python 3.10 back to default python 3.9
a4f479c
18 days ago
by butvinm
+0.02%
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
3c71f43
12 days ago
by pre-commit-ci[bot]
+0.04%
Fix expected file melformed during refactoring
8da8568
12 days ago
by butvinm
-0.02%
Merge branch 'main' into use-type-alias
1fe7656
11 days ago
by koxudaxi
+0.05%
Remove expected test file github_api.py as never it is not used in tests
df2aeaa
11 days ago
by butvinm
-0.06%
Merge branch 'main' into use-type-alias
cf41882
10 days ago
by butvinm
-0.1%
Merge branch 'koxudaxi:main' into use-type-alias
582ed0a
8 days ago
by butvinm
+0.04%
Add documentation for root models and type aliases
Add new documentation page explaining the difference between RootModel
and type aliases, and when to use the --use-type-alias flag.
The page includes:
- Introduction explaining use cases for type aliases
- Three examples showing RootModel, TypeAliasType, and type statement
- All examples use Pydantic v2 syntax
- Notes about limitations and usage
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
4e3088f
5 days ago
by butvinm
-0.04%
Move Notes section at the top
c6b8486
5 days ago
by butvinm
+0.01%
Update docs/root-model-and-type-alias.md
Co-authored-by: Antonio Spadaro <ilovelinux@users.noreply.github.com>