This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| python:overloading [2024/12/16 07:37] – Niels | python:overloading [2024/12/16 07:42] (current) – [Overload in typing library] Niels | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| + | ====== Overloading ====== | ||
| + | ===== Single dispatch ===== | ||
| + | |||
| + | [[https:// | ||
| + | |||
| + | |||
| + | ===== Overload in typing library | ||
| + | |||
| + | // Is for type checking only, the actual implementation is still just done in one function. I guess these days since you can define multiple input types and return types with type hints i guess this decorator may be considered obsolete.// | ||
| + | |||
| + | [[https:// | ||