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.

Back to top