from typing import List
from typing import Set


def get_elements(li: List[int]) -> Set:
    """Extracts all the unique elements from a list of numbers.

    doctests:
    >>> get_elements([1, 2, 3, 1, 2, 3, 5, 4, 7, 7])
    {1, 2, 3, 4, 5, 7}
    >>> get_elements([2, 2, 2, 3, 1])
    {1, 2, 3}
    """

    x = set()

    for i in li:
        if i in x:
            pass
        else:
            x.add(i)

    return x