Skip to content

basilisp-lang/singledispatch-native

Repository files navigation

singledispatch-native

Native version of functools.singledispatch written in Rust

Getting Started

singledispatch-native can be installed from PyPI using e.g. pip install singledispatch-native.

Usage is identical to the builtin functools.singledispatch:

from typing import Any

from singledispatch_native import singledispatch

@singledispatch
def f(o: Any) -> str:
    return "Any"


@f.register(str)
def f(o: str) -> str:
    return o

License

Copyright (c) 2025 Chris Rink

Apache License 2.0

About

Native version of `functools.singledispatch` written in Rust

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published