← Files AgentBrokoARCHIVED FILE

.venv/Lib/site-packages/cytoolz/curried/operator.py

527 Bytes · Oct 5, 2026 · 18:33 UTC

↓ Download file

import operator

from cytoolz.functoolz import curry


# Tests will catch if/when this needs updated
IGNORE = {
    "__abs__", "__index__", "__inv__", "__invert__", "__neg__", "__not__",
    "__pos__", "_abs", "abs", "attrgetter", "index", "inv", "invert",
    "is_none", "is_not_none", "itemgetter", "neg", "not_", "pos", "truth"
}

locals().update(
    {name: f if name in IGNORE else curry(f)
     for name, f in vars(operator).items() if callable(f)}
)

# Clean up the namespace.
del curry
del operator

SHA-256: 19fa8a3dbaebdd61133735d6748b482a699bc16a8b73066073a4f9ce9f7716ce