pyanno4rt.input_check.check_functions._check_key_in_dict

Dictionary key checking.

Overview

Function

check_key_in_dict(label, data, keys)

Check if a key is not featured in a dictionary.

Functions

pyanno4rt.input_check.check_functions._check_key_in_dict.check_key_in_dict(label, data, keys)[source]

Check if a key is not featured in a dictionary.

Parameters:
  • key (str) – Label for the item to be checked.

  • data (dict) – Dictionary with the reference keys.

  • keys (tuple) – Tuple with the keys to search for in the dictionary.

Raises:

KeyError – If a key is not featured in the dictionary.