(ann)
| 64 | |
| 65 | |
| 66 | def _dummy(ann): |
| 67 | s = str(ann) |
| 68 | if "bool" in s: |
| 69 | return False |
| 70 | if "int" in s: |
| 71 | return 0 |
| 72 | if "float" in s: |
| 73 | return 0.0 |
| 74 | if "List" in s or "list" in s: |
| 75 | return [] |
| 76 | if "Dict" in s or "dict" in s or "Mapping" in s: |
| 77 | return {} |
| 78 | return "" |
| 79 | |
| 80 | |
| 81 | def _valid(model_cls, **overrides): |