docs: add dict-to-model refactor docs (fixes #2040)#3423
Conversation
|
"fixes" will close origin issue, I suggest using "fixes part of" |
OK, I believe this PR fully resolves #2040. If there are any remaining parts, let me know! |
When I get home, I’ll double-check everything once more to ensure nothing is missed. |
|
#2207 you can check this list |
#2040 is the whole issue for the missing video for code action. |
OK, Thanks! |
|
@rchen152 has imported this pull request. If you are a Meta employee, you can view this in D105753479. |
rchen152
left a comment
There was a problem hiding this comment.
Thanks for the PR! From a glance, the list of supported code actions here looks much longer than the documented code actions, and I didn't see documentation for a couple that I spot-checked, like convert_star_import, so I don't think the documentation is complete yet.
The issue also requests videos of the code actions.
Summary
Fixes #2040
Added documentation for "Convert dict to model" code action in website/docs/IDE-features.mdx. The code action creates a TypedDict, dataclass, or Pydantic model from a selected dict literal, inserting required imports and generating a matching class skeleton from the selected fields.
Test Plan
Verified the documentation change renders correctly
Ran python3 test.py --no-test --no-conformance --no-jsonschema — formatting and linting passed