Site Tools


python:overloading

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
python:overloading [2024/12/16 07:37] – created Nielspython:overloading [2024/12/16 07:42] (current) – [Overload in typing library] Niels
Line 6: Line 6:
  
  
-====== Overload in typing library  ======+===== 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://docs.python.org/3/library/typing.html#typing.overload | Overload (python docs)  ]] [[https://docs.python.org/3/library/typing.html#typing.overload | Overload (python docs)  ]]
python/overloading.1734331042.txt.gz · Last modified: by Niels