Skip to content

docs: add dict-to-model refactor docs (fixes #2040)#3423

Open
f1sherFM wants to merge 1 commit into
facebook:mainfrom
f1sherFM:docs-issue-2040
Open

docs: add dict-to-model refactor docs (fixes #2040)#3423
f1sherFM wants to merge 1 commit into
facebook:mainfrom
f1sherFM:docs-issue-2040

Conversation

@f1sherFM
Copy link
Copy Markdown
Contributor

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

@asukaminato0721
Copy link
Copy Markdown
Contributor

"fixes" will close origin issue, I suggest using "fixes part of"

@f1sherFM
Copy link
Copy Markdown
Contributor Author

f1sherFM commented May 18, 2026

"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!

@f1sherFM
Copy link
Copy Markdown
Contributor Author

"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.

@asukaminato0721
Copy link
Copy Markdown
Contributor

#2207 you can check this list

@f1sherFM
Copy link
Copy Markdown
Contributor Author

#2207 you can check this list

Just to clarify - did you send me #2207 so I could find another task to work on in Pyrefly? Or was there another reason? Thanks!

@asukaminato0721
Copy link
Copy Markdown
Contributor

asukaminato0721 commented May 18, 2026

#2207 you can check this list

Just to clarify - did you send me #2207 so I could find another task to work on in Pyrefly? Or was there another reason? Thanks!

#2040 is the whole issue for the missing video for code action.
And all the code action can be found at #2207.
So yes, you can find code actions that are missing doc there.

@f1sherFM
Copy link
Copy Markdown
Contributor Author

#2207 you can check this list

Just to clarify - did you send me #2207 so I could find another task to work on in Pyrefly? Or was there another reason? Thanks!

#2040 is the whole issue for the missing video for code action. And all the code action can be found at #2207. So yes, you can find code actions that are missing doc there.

OK, Thanks!

@meta-codesync
Copy link
Copy Markdown
Contributor

meta-codesync Bot commented May 19, 2026

@rchen152 has imported this pull request. If you are a Meta employee, you can view this in D105753479.

Copy link
Copy Markdown
Contributor

@rchen152 rchen152 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

add code action video and description to IDE features docs

3 participants