Typechecking¶
Runtime checking¶
- beartype -> Needs to modify code (
@beartype
) - enforce. -> Need code modification (
@runtime\_validation
) + unmaintained - pytypes. -> Same
- typeen. -> Same
- typeguard. -> No need for code modification, but buggy (“typeguard cannot check these packages because they are already imported”)
=> And the winner is: Typeguard.
Page last modified: 2024-11-19 09:38:33