Demo Module

Deprecated function with deprecated argument

old_add_with_verbose is deprecated and has one argument (verbose) that has been removed. Both the inline argument annotation and the general deprecation notice are injected into the docstring.

demo.old_add_with_verbose(x: int, y: int, verbose: bool = False) int

Add two integers, formerly with optional logging (legacy).

The verbose argument has been removed; the function itself is also deprecated in favour of new_add.

Parameters:
  • x – First operand.

  • y – Second operand.

  • verbose – Deprecated — logging is no longer supported. Deprecated since v1.0 — no longer used. Will be removed in v2.0.

Returns:

The sum of x and y.

Deprecated since version 1.0: Will be removed in 2.0. Use demo.new_add() instead.

Deprecated class

OldCalculator is deprecated in favour of NewCalculator.

demo.OldCalculator

alias of NewCalculator