()
| 649 | """Mapping from the PropTypes js type object to the Python type.""" |
| 650 | |
| 651 | def shape_or_exact(): |
| 652 | return "dict with keys:\n" + "\n".join( |
| 653 | create_prop_docstring( |
| 654 | prop_name=prop_name, |
| 655 | type_object=prop, |
| 656 | required=prop["required"], |
| 657 | description=prop.get("description", ""), |
| 658 | default=prop.get("defaultValue"), |
| 659 | indent_num=indent_num + 2, |
| 660 | ) |
| 661 | for prop_name, prop in type_object["value"].items() |
| 662 | ) |
| 663 | |
| 664 | def array_of(): |
| 665 | inner = js_to_py_type(type_object["value"]) |
nothing calls this directly
no test coverage detected
searching dependent graphs…