unicodedata.digit()

unicodedata.digit(chr[, default]) Returns the digit value assigned to the character chr as integer. If no such value is defined, default is returned, or, if not given, ValueError is raised.

typing.Union

class typing.Union Union type; Union[X, Y] means either X or Y. To define a union, use e.g. Union[int, str]. Details: The arguments must be types and there must be at least one. Unions of unions are flattened, e.g.: Union[Union[int, str], float] == Union[int, str, float] Unions of a single argument vanish, e.g.: Union[int] == int # The constructor actually returns int Redundant arguments are skipped, e.g.: Union[int, str, int] == Union[int, str] When comparing unions, the argumen

unicodedata.bidirectional()

unicodedata.bidirectional(chr) Returns the bidirectional class assigned to the character chr as string. If no such value is defined, an empty string is returned.

UnboundLocalError

exception UnboundLocalError Raised when a reference is made to a local variable in a function or method, but no value has been bound to that variable. This is a subclass of NameError.

unicodedata.combining()

unicodedata.combining(chr) Returns the canonical combining class assigned to the character chr as integer. Returns 0 if no combining class is defined.

typing.ValuesView

class typing.ValuesView(MappingView[VT_co]) A generic version of collections.abc.ValuesView.

unicodedata.category()

unicodedata.category(chr) Returns the general category assigned to the character chr as string.

typing.SupportsInt

class typing.SupportsInt An ABC with one abstract method __int__.

typing.SupportsRound

class typing.SupportsRound An ABC with one abstract method __round__ that is covariant in its return type.

typing.Text

class typing.Text Text is an alias for str. It is provided to supply a forward compatible path for Python 2 code: in Python 2, Text is an alias for unicode. Use Text to indicate that a value must contain a unicode string in a manner that is compatible with both Python 2 and Python 3: def add_unicode_checkmark(text: Text) -> Text: return text + u' \u2713'