class_docstr: A sequence of [`equinox.Module`][]s applied in order.
  
  !!! note
  
      Activation functions can be added by wrapping them in [`equinox.nn.Lambda`][].
code: def __getitem__(self, i: Union[int, slice]) -> Callable:
      if isinstance(i, int):
          return self.layers[i]
      elif isinstance(i, slice):
          return Sequential(self.layers[i])
      else:
          raise TypeError(
              f"Indexing with type {type(i)} is not supported"
          )
  
imports: from collections.abc import Callable, Sequence
  from typing import Any, Optional, overload, Union
  import jax
  import jax.random
  from jaxtyping import Array, PRNGKeyArray
  from .._better_abstract import AbstractClassVar
  from .._custom_types import sentinel
  from .._module import Module, StrictConfig
  from ._stateful import State
label_desc: Use image node_id 6 for calling the Sequential obj's underlying member method code with example usage: obj.__getitem__(i) and returns: self, Sequential