True if `data` is a dict containing `key`.
(data, key)
| 511 | |
| 512 | |
| 513 | def has_key(data, key): |
| 514 | """True if `data` is a dict containing `key`.""" |
| 515 | return isinstance(data, dict) and key in data |
| 516 | |
| 517 | |
| 518 | def get_str(data, key): |
no outgoing calls
no test coverage detected