Skip to content

miniproto.file_id.is_file_id

is_file_id(value: object) -> TypeGuard[str]

Return whether a value has the miniproto file-id prefix.

Parameters:

  • value (object) – Arbitrary candidate value.

Returns:

  • TypeGuard[str]True only for strings beginning with mpf1_.