Utils Module
Utilities for working with terminals, strings, and Enums.
- author:
Doug Skrypa
- cli_command_parser.utils.short_repr(obj: ~typing.Any, max_len: int = 100, sep: str = '...', func: ~typing.Callable[[~typing.Any], str] = <built-in function repr>) str [source]
- class cli_command_parser.utils.FixedFlagMeta(*args, **kwargs)[source]
Bases:
EnumType
This metaclass is only used to maintain the same behavior for Flag pseudo-members between 3.7-3.10 and 3.11 when the behavior was parameterized via the
boundary
parameter.
- class cli_command_parser.utils.FixedFlag(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]
Bases:
Flag
Extends Flag to work around breaking changes in 3.11 for repr, missing, and pseudo-members.