pyanno4rt.tools._add_square_brackets

Text square bracketing.

Overview

Function

add_square_brackets(text)

Add square brackets to a string-type text.

Functions

pyanno4rt.tools._add_square_brackets.add_square_brackets(text)[source]

Add square brackets to a string-type text.

Parameters:

text (str) – Input text to be placed in brackets.

Returns:

text – Input text with enclosing square brackets (if non-empty string).

Return type:

str