TextCache

class TextCache[source]

Bases: ABC

An interface for looking up text for various flavors of entity identifiers.

Methods Summary

get_texts(identifiers)

Get text for the given identifiers for the cache.

Methods Documentation

abstract get_texts(identifiers: Sequence[str]) Sequence[str | None][source]

Get text for the given identifiers for the cache.

Parameters:

identifiers (Sequence[str])

Return type:

Sequence[str | None]