Current Situation
ReactPy can generate type hinting errors generated (from Pylance).
For example, the fact that reactpy.component can ingest a ComponentType, but can only return a Component. Or the fact that use_state can be set to None initially and changed later.
Proposed Actions
Review user API type hints and fix where needed.
Current Situation
ReactPy can generate type hinting errors generated (from Pylance).
For example, the fact that
reactpy.componentcan ingest aComponentType, but can only return aComponent. Or the fact thatuse_statecan be set to None initially and changed later.Proposed Actions
Review user API type hints and fix where needed.