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: 2023-03-08 11:32:44