# petsc4py.typing.InsertModeSpec

petsc4py.typing.InsertModeSpec = petsc4py.PETSc.InsertMode | bool | None

  Insertion mode specification.

  Possible values are:

    - `InsertMode.ADD_VALUES` Add new value to existing one.

    - `InsertMode.INSERT_VALUES` Replace existing entry with new value.

    - `None` as `InsertMode.INSERT_VALUES`.

    - `False` as `InsertMode.INSERT_VALUES`.

    - `True` as `InsertMode.ADD_VALUES`.

  See also

  `InsertMode`