def _name_disallowed_by_regex(self, name: str) -> bool:
    return ((name in self.config.bad_names) or any((pattern.match(name) for pattern in self._bad_names_rgxs_compiled)))
def _name_disallowed_by_regex(self, name: str) -> bool:
    return ((name in self.config.bad_names) or any((pattern.match(name) for pattern in self._bad_names_rgxs_compiled)))