Skip to content

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-09-25 08:35:47