Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def _lookup_values(self, key):
entries = registry.get("bic").get(self.compact, [])
return sorted({entry[key] for entry in entries})
def _get_iban_spec(country_code):
try:
return registry.get("iban")[country_code]
except KeyError:
raise ValueError("Unknown country-code '{}'".format(country_code))
def exists(self):
"""bool: Indicates if the BIC is available in Schwifty's registry."""
return bool(registry.get("bic").get(self.compact))