reactpy icon indicating copy to clipboard operation
reactpy copied to clipboard

MyPy plugin to warn for component unpacking operators

Open rmorshea opened this issue 3 years ago • 4 comments
trafficstars

Current Situation

Currently we don't document that using the unpacking operator (*args) has undesirable consequences on whether we do or don't warn about missing keys.

Proposed Actions

Document this fact. If it turns out that, despite this documentation, people run into this issue often, consider changing the syntax.

Work Items

  • [ ] add docs on unpacking operator to "Rendering Data" docs.

rmorshea avatar Jan 27 '22 02:01 rmorshea

@rmorshea Can I add a Todo (Docs) column to the GitHub Project's page to prevent documentation tasks from cluttering the task list?

It's hard to tell at first glance how much development actually needs to go into v1 since there's so many docs changes needed.

Archmonger avatar Feb 17 '22 03:02 Archmonger

Go for it. Let me know if you're not able to.

rmorshea avatar Feb 17 '22 04:02 rmorshea

I think a MyPy plugin could help with this

rmorshea avatar Nov 05 '22 07:11 rmorshea

Changing this to issue a plugin, and moving to V2.

Archmonger avatar Nov 30 '22 06:11 Archmonger