mpi4py.typing

New in version 4.0.0.

This module provides type aliases used to add type hints to the various functions and methods within the MPI module.

See also

Module typing

Documentation of the typing standard module.

Types Summary

Buffer

Buffer-like object.

Bottom

Start of the address range.

InPlace

In-place buffer argument.

Aint

Address-sized integral type.

Count

Integral type for counts.

Displ

Integral type for displacements.

Offset

Integral type for offsets.

TypeSpec

Datatype specification.

BufSpec

Buffer specification.

BufSpecB

Buffer specification (block).

BufSpecV

Buffer specification (vector).

BufSpecW

Buffer specification (generalized).

TargetSpec

Target specification.

Types Documentation

mpi4py.typing.Buffer = typing.Any

Buffer-like object.

alias of Any

mpi4py.typing.Bottom

Start of the address range.

alias of Optional[mpi4py.MPI.BottomType]

mpi4py.typing.InPlace

In-place buffer argument.

alias of Optional[mpi4py.MPI.InPlaceType]

mpi4py.typing.Aint = <class 'numbers.Integral'>

Address-sized integral type.

alias of numbers.Integral

mpi4py.typing.Count = <class 'numbers.Integral'>

Integral type for counts.

alias of numbers.Integral

mpi4py.typing.Displ = <class 'numbers.Integral'>

Integral type for displacements.

alias of numbers.Integral

mpi4py.typing.Offset = <class 'numbers.Integral'>

Integral type for offsets.

alias of numbers.Integral

mpi4py.typing.TypeSpec

Datatype specification.

alias of Union[mpi4py.MPI.Datatype, str]

mpi4py.typing.BufSpec

Buffer specification.

alias of Union[Any, Tuple[Any, numbers.Integral], Tuple[Any, Union[mpi4py.MPI.Datatype, str]], Tuple[Any, numbers.Integral, Union[mpi4py.MPI.Datatype, str]], Tuple[Optional[mpi4py.MPI.BottomType], numbers.Integral, mpi4py.MPI.Datatype], List]

mpi4py.typing.BufSpecB

Buffer specification (block).

alias of Union[Any, Tuple[Any, numbers.Integral], Tuple[Any, Union[mpi4py.MPI.Datatype, str]], Tuple[Any, numbers.Integral, Union[mpi4py.MPI.Datatype, str]], List]

mpi4py.typing.BufSpecV

Buffer specification (vector).

alias of Union[Any, Tuple[Any, Sequence[numbers.Integral]], Tuple[Any, Tuple[Sequence[numbers.Integral], Sequence[numbers.Integral]]], Tuple[Any, Union[mpi4py.MPI.Datatype, str]], Tuple[Any, Sequence[numbers.Integral], Union[mpi4py.MPI.Datatype, str]], Tuple[Any, Tuple[Sequence[numbers.Integral], Sequence[numbers.Integral]], Union[mpi4py.MPI.Datatype, str]], Tuple[Any, Sequence[numbers.Integral], Sequence[numbers.Integral], Union[mpi4py.MPI.Datatype, str]], Tuple[Optional[mpi4py.MPI.BottomType], Tuple[Sequence[numbers.Integral], Sequence[numbers.Integral]], mpi4py.MPI.Datatype], Tuple[Optional[mpi4py.MPI.BottomType], Sequence[numbers.Integral], Sequence[numbers.Integral], mpi4py.MPI.Datatype], List]

mpi4py.typing.BufSpecW

Buffer specification (generalized).

alias of Union[Tuple[Any, Sequence[mpi4py.MPI.Datatype]], Tuple[Any, Tuple[Sequence[numbers.Integral], Sequence[numbers.Integral]], Sequence[mpi4py.MPI.Datatype]], Tuple[Any, Sequence[numbers.Integral], Sequence[numbers.Integral], Sequence[mpi4py.MPI.Datatype]], Tuple[Optional[mpi4py.MPI.BottomType], Tuple[Sequence[numbers.Integral], Sequence[numbers.Integral]], Sequence[mpi4py.MPI.Datatype]], Tuple[Optional[mpi4py.MPI.BottomType], Sequence[numbers.Integral], Sequence[numbers.Integral], Sequence[mpi4py.MPI.Datatype]], List]

mpi4py.typing.TargetSpec

Target specification.

alias of Union[numbers.Integral, Tuple[()], Tuple[numbers.Integral], Tuple[numbers.Integral, numbers.Integral], Tuple[numbers.Integral, numbers.Integral, Union[mpi4py.MPI.Datatype, str]], List]