stenotype CLI Directive¶
stenotype¶
CLI entrypoint to test the stenotype backend.
Enter any number of stenotype expressions to see which standard annotations they will resolve into. There is no need to double quote expression or to assign them to a value, the following will just work:
$ stenotype ‘bool or int’
typing.Union[bool, int]
$ stenotype ‘(int) -> bool’
typing.Signature[[int], bool]
You can also enter multiple arguments that will be executed in turn and consider each other in the context of, for example, custom type variables:
$ stenotype ‘T, int’ ‘bool or T’
T = TypeVar[int]
typing.Union[bool, T]
stenotype [OPTIONS] [ARGS]...
Options
-
-v
,
--version
¶
Print stenotype’s version number and exit.
-
-l
,
--loglevel
<loglevel>
¶ Set the loglevel.
- Options
DEBUG|INFO|WARNING|ERROR
-
-s
,
--shorten
¶
Inverts the parser to instead try to generate stenotype from standard types.
-
-c
,
--check
¶
Disables the check-skipping, annotations need to be written as they would be in source files in this mode.
Arguments
-
ARGS
¶
Optional argument(s)