tlc.utils.decorators
¶
Module Contents¶
Functions¶
Function |
Description |
---|---|
Decorator to disallow passing positional arguments to a method with a custom message. |
Data¶
Data |
Description |
---|---|
API¶
- T = TypeVar(...)¶
- disallow_positional_arguments(
- message: str = '',
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.