tlc.utils.decorators

Module Contents

Functions

Function

Description

disallow_positional_arguments

Decorator to disallow passing positional arguments to a method with a custom message.

Data

Data

Description

T

API

tlc.utils.decorators.T = TypeVar(...)
tlc.utils.decorators.disallow_positional_arguments(message: str = '') Callable[[tlc.utils.decorators.T], tlc.utils.decorators.T]

Decorator to disallow passing positional arguments to a method with a custom message.

Parameters:

message – The custom message to display when the method is called with positional arguments. Usually a suggestion on what to do instead.

Returns:

The decorator.