Releases: mkorpela/overrides
Overrides 6.4.0
Overrides 6.3.0
Overrides 6.2.0
Support for Literals.
#94
Full Changelog: 6.1.0...6.2.0
Ignore untyped third party (another main module) signature
Fixing: "Override breaks when overriding a method with no type hints in third party library" #77
Ignore broken types
Broken types caused errors in 6.0.0.
Now these are detected and ignored.
Correct types for decorated methods
Overrides decorator used to return Any, now keeps the original type information and is more compatible with mypy.
Fix recursive TypeVar
Fix bug with TypeVar somewhere in the type structure.
Signature checks in overrides
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 toFalse
to completely disable method signature checkcheck_at_runtime: bool
set this toTrue
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!
Fix 3.6 crash
Fix #65
Fix type definition string
Fix case where type is defined as string.