Module type_var

ooodev.utils.type_var.T = TypeVar(T)

Type:    TypeVar

Invariant TypeVar.

protocol ooodev.utils.type_var.CancelEventArgsCallbackT[source]

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

__call__(src, event, *args, **kwargs)[source]

Call self as a function.

Return type:

None

Parameters:
  • src (Any) –

  • event (CancelEventArgs) –

  • args (Any) –

  • kwargs (Any) –

ooodev.utils.type_var.DocOrCursor

Type of Text Document or Cursor

ooodev.utils.type_var.DocOrText

Type of Text Document of Text

protocol ooodev.utils.type_var.EventArgsCallbackT[source]

typing.Protocol.

Classes that implement this protocol must have the following methods / attributes:

__call__(src, event, *args, **kwargs)[source]

Call self as a function.

Return type:

None

Parameters:
  • src (Any) –

  • event (EventArgs) –

  • args (Any) –

  • kwargs (Any) –

ooodev.utils.type_var.UnoInterface

Represents a uno interface class. Any uno Class that starts with X

ooodev.utils.type_var.Column

Represents a Column of a Table.

alias of Sequence[Any]

ooodev.utils.type_var.DictRow

Represents a Row of a Table as a dictionary of Key, value. Where the key is the column name.

alias of Dict[str, Any]

ooodev.utils.type_var.DictTable

Represents a Dictionary table. Each Element in the sequence as DictRow (dictionary of key, value) with key as column name.

alias of Sequence[Dict[str, Any]]

ooodev.utils.type_var.EventCallback

Event Callback

alias of Callable[[Any, Any], None]

ooodev.utils.type_var.FloatList

List of Floats

alias of List[float]

ooodev.utils.type_var.FloatTable

Table like array of floats with rows and columns

alias of List[List[float]]

ooodev.utils.type_var.ListenerEventCallbackT

Listener Event Callback

alias of Callable[[Any, object], None]

ooodev.utils.type_var.PathOrStr

Path like object or string

alias of Union[str, PathLike]

ooodev.utils.type_var.Row

Represents a Row of a Table.

alias of Sequence[Any]

ooodev.utils.type_var.Table

Represents a 2-D Table of Rows and Columns

alias of Sequence[Sequence[Any]]

ooodev.utils.type_var.TupleArray

Table like tuples with rows and columns

alias of Tuple[Tuple[Any, …], …]