in tiktoken/core.py [0:0]
def encode( self, text: str, *, allowed_special: Literal["all"] | AbstractSet[str] = set(), # noqa: B006 disallowed_special: Literal["all"] | Collection[str] = "all",