Skip to content

Signature checks in overrides

Compare
Choose a tag to compare
@mkorpela mkorpela released this 29 Apr 06:53
83edaf6

This is a major new release that implements signature checks.
There are notable cases where signature checks do not work, but library has now also better support for mypy and typing.

@overrides decorator has now two optional arguments to handle hard signature checks:

  • check_signature: bool set this to False to completely disable method signature check
  • check_at_runtime: bool set this to True to delay signature checks until runtime. This enables forward reference checks.

Special thanks goes to @ashwin153, @brentyi and @cboots - you have all made this happen!

@ashwin153 has contributed large parts and initial implementations for signature checks. Awesome work!