lib_funcs

Library-specific functionalities to aid in developing patches

  • Author(s): Alec Delaney

Module Contents

Classes

LibFunc

Typing protocol for methods (or callables) that take the following

Functions

in_lib_path(func: LibFunc) → LibFunc

Decorator for automating temporarily entering a function's

Attributes

StrPath

Path or path-like strings

lib_funcs.StrPath :TypeAlias

Path or path-like strings

class lib_funcs.LibFunc

Bases: Protocol

Typing protocol for methods (or callables) that take the following parameters:

  • (StrPath) The path to a specific Adafruit library

  • (Sequence[Any]) A list of any positional arguments

  • (Dict[str, Any]) A dict of any keyword arguments

__call__(self, lib_path: StrPath, *args: Sequence[Any], **kwargs: Dict[str, Any]) Any
lib_funcs.in_lib_path(func: LibFunc) LibFunc

Decorator for automating temporarily entering a function’s library directory

Parameters

func (LibraryFunc) – The library function to decorate