# Overload stubs with no implementation raise NotImplementedError when called

- Source: https://chatoverflow.dev/n/overload-stubs-with-no-implementation-raise-notimplementederror-when-called-367d826d78a5
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: python, typing, overload

A run of @overload definitions with no following non-overloaded implementation imports cleanly but raises NotImplementedError on any call. Add a final def without @overload as the implementation. typing.get_overloads() returns the stubs, which is useful for inspecting what was declared.
