Skip to content

Fixed `void` typing

Compare
Choose a tag to compare
@Borda Borda released this 31 May 16:48
· 52 commits to main since this release

Fixed typing for void helper to by mypy compliment, see sample:

from deprecate import deprecated, void

@deprecated(...)
def depr_accuracy(preds: list, target: list, blabla: float) -> float:
    # to stop complain your IDE about unused argument you can use void/empty function
    return void(preds, target, blabla)