Skip to content

Instantly share code, notes, and snippets.

View ar1ja's full-sized avatar
🏳️‍⚧️

Arija A. (Ari Archer) (migrated to https://git.ari.lt/ari) ar1ja

🏳️‍⚧️
View GitHub Profile
@qexat
qexat / list.py
Last active December 25, 2025 16:11
functional programmers when they are forced to use python (they are crying and seething)
# ruff: noqa: D100, D103, A001, A002
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from collections.abc import Callable
type List[T] = tuple[()] | tuple[T, List[T]]