def check_category_keys()

in bots/triage-slackbot/triage_slackbot/config.py [0:0]


    def check_category_keys(config: "Config") -> "Config":
        if config.other_category_enabled:
            if OTHER_KEY in config.categories:
                raise ValidationError("other category is reserved and cannot be used")

        category_keys = set(config.categories.keys())
        if len(category_keys) != len(config.categories):
            raise ValidationError("category keys must be unique")

        return config