(full_key: str)
return match.group(3), match.group(1), int(match.group(2))
Reverse of Django's default_key_func, i.e. undoing:

        def default_key_func(key, key_prefix, version):
            return '%s:%s:%s' % (key_prefix, version, key)
Reverse of Django's default_key_func, i.e. undoing:
Reverse of Django s default_key_func i . e . undoing :
def default_reverse_key_func(full_key: str) -> Tuple[str, str, int]:
    """
    Reverse of Django's default_key_func, i.e. undoing:

        def default_key_func(key, key_prefix, version):
            return '%s:%s:%s' % (key_prefix, version, key)
    """
    match = reverse_key_re.match(full_key)
    assert match is not None
    return match.group(3), match.group(1), int(match.group(2))
def default_reverse_key_func ( full_key : str ) -> Tuple [ str , str , int ] : match = reverse_key_re . match ( full_key ) assert match is not None return match . group ( 3 ) , match . group ( 1 ) , int ( match . group ( 2 ) )