Due to the extensive type annotations in the library, runtime type checking. This ensures that functions receive and return values of the expected types, catching potential bugs and mismatches early in the development. Three main libraries exists for this purpose: Typeguard, Pydantic, and Beartype. Performance overhead need to be tested.
Beartype seems to be the most promising as it has minimal performance overhead and supports user-defined types for type annotations.
Due to the extensive type annotations in the library, runtime type checking. This ensures that functions receive and return values of the expected types, catching potential bugs and mismatches early in the development. Three main libraries exists for this purpose: Typeguard, Pydantic, and Beartype. Performance overhead need to be tested. Beartype seems to be the most promising as it has minimal performance overhead and supports user-defined types for type annotations.