pyrefly icon indicating copy to clipboard operation
pyrefly copied to clipboard

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

Open f1sherFM opened this issue 6 months ago • 8 comments

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

f1sherFM avatar May 16 '26 16:05 f1sherFM

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

asukaminato0721 avatar May 18 '26 06:05 asukaminato0721

"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 avatar May 18 '26 10:05 f1sherFM

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

f1sherFM avatar May 18 '26 10:05 f1sherFM

https://github.com/facebook/pyrefly/issues/2207 you can check this list

asukaminato0721 avatar May 18 '26 11:05 asukaminato0721

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

f1sherFM avatar May 18 '26 13:05 f1sherFM

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

asukaminato0721 avatar May 18 '26 14:05 asukaminato0721

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

f1sherFM avatar May 18 '26 17:05 f1sherFM

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

meta-codesync[bot] avatar May 19 '26 21:05 meta-codesync[bot]