medcat.utils.decorators

Module Contents

Functions

_format_version(ver)

deprecated(message, depr_version, removal_version)

Deprecate a method.

check_positive(func)

medcat.utils.decorators._format_version(ver)
Parameters:

ver (Tuple[int, int, int]) –

Return type:

str

medcat.utils.decorators.deprecated(message, depr_version, removal_version)

Deprecate a method.

Parameters:
  • message (str) – The deprecation message.

  • depr_version (Tuple[int, int, int]) – The first version of MedCAT where this was deprecated.

  • removal_version (Tuple[int, int, int]) – The first version of MedCAT where this will be removed.

Returns:

Callable – _description_

Return type:

Callable

medcat.utils.decorators.check_positive(func)
Parameters:

func (Callable) –

Return type:

Callable