projectmesa / mesa-frames

Extension of mesa for performance and scalability
https://projectmesa.github.io/mesa-frames
Apache License 2.0
13 stars 4 forks source link

Run-time type checking #21

Open adamamer20 opened 2 months ago

adamamer20 commented 2 months ago

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.