finesse.script.adapter.Argument

Overview

class finesse.script.adapter.Argument(name: str, kind: ~finesse.script.adapter.ArgumentType = ArgumentType.ANY, default: ~typing.Any = <class 'finesse.script.adapter._empty'>, annotation: ~typing.Any = <class 'finesse.script.adapter._empty'>)[source]

Bases: object

A generic instruction argument.

This is similar but not identical to inspect.Parameter. Arguments in the Finesse sense are more general than inspect.Parameter since they can refer to KatScript arguments, and KatScript instructions may not necessarily define their supported arguments via Python class signatures.