unicodedata.decimal()

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

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.

unicodedata.category()

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

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.

typing.ValuesView

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

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

typing.TypeVar

class typing.TypeVar Type variable. Usage: T = TypeVar('T') # Can be anything A = TypeVar('A', str, bytes) # Must be str or bytes Type variables exist primarily for the benefit of static type checkers. They serve as the parameters for generic types as well as for generic function definitions. See class Generic for more information on generic types. Generic functions work as follows: def repeat(x: T, n: int) -> Sequence[T]: """Return a list containing n references to x.""" retur

typing.Tuple

class typing.Tuple Tuple type; Tuple[X, Y] is the type of a tuple of two items with the first item of type X and the second of type Y. Example: Tuple[T1, T2] is a tuple of two elements corresponding to type variables T1 and T2. Tuple[int, float, str] is a tuple of an int, a float and a string. To specify a variable-length tuple of homogeneous type, use literal ellipsis, e.g. Tuple[int, ...].

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'