(arg)
| 86 | |
| 87 | |
| 88 | def validate_id_dict(arg): |
| 89 | arg_id = arg.component_id |
| 90 | |
| 91 | for k in arg_id: |
| 92 | # Need to keep key type validation on the Python side, since |
| 93 | # non-string keys will be converted to strings in json.dumps and may |
| 94 | # cause unwanted collisions |
| 95 | if not isinstance(k, str): |
| 96 | raise exceptions.IncorrectTypeException( |
| 97 | dedent( |
| 98 | f""" |
| 99 | Wildcard ID keys must be non-empty strings, |
| 100 | found {k!r} in id {arg_id!r} |
| 101 | """ |
| 102 | ) |
| 103 | ) |
| 104 | |
| 105 | |
| 106 | def validate_id_string(arg): |
no outgoing calls
no test coverage detected
searching dependent graphs…