code: def linear(m: float = 1, b: float = 0) -> partial[Callable[[], None]]:
      """Return a driver function that can advance a sequence of linear values.
  
      .. code-block:: none
  
          value = m * i + b
  
      Args:
          m (float) : a slope for the linear driver
          x (float) : an offset for the linear driver
  
      """
  
      def f(i: float) -> float:
          return m * i + b
  
      return partial(force, sequence=_advance(f))
  
file_path: bokeh/src/bokeh/driving.py
imports: from __future__ import annotations
  import logging
  from functools import partial
  from typing import Any, Callable, Iterable, Iterator, Sequence, TypeVar
label_desc: Use image node_id 5 for calling a global function with example usage: linear(m, b) and returns: partial, unknown