ReFreSH.MobileSuit.Decorators package

Submodules

ReFreSH.MobileSuit.Decorators.DecoratorNames module

ReFreSH.MobileSuit.Decorators.DecoratorUtils module

ReFreSH.MobileSuit.Decorators.DecoratorUtils.get_alias(func: Callable)[source]
ReFreSH.MobileSuit.Decorators.DecoratorUtils.get_info(func: Callable) str | None[source]
ReFreSH.MobileSuit.Decorators.DecoratorUtils.get_injected(func: Callable, arg_name: str) bool[source]
ReFreSH.MobileSuit.Decorators.DecoratorUtils.get_parser(func: Callable, arg_name: str)[source]
ReFreSH.MobileSuit.Decorators.DecoratorUtils.is_ignored(func: Callable)[source]

ReFreSH.MobileSuit.Decorators.SuitArgParser module

ReFreSH.MobileSuit.Decorators.SuitArgParser.SuitArgParser(arg_name: str, parser_name: str = '', TTarget=None, TConverter=None)[source]

Select the parser used for the certain argument

class ReFreSH.MobileSuit.Decorators.SuitArgParser.SuitArgParserInfo(parser_name: str = '', converter: Callable[[str], T | None] | None = None)[source]

Bases: Generic[T]

classmethod FromDecorator(parser_name: str = '', TTarget=None, TConverter=None)[source]

Module contents

ReFreSH.MobileSuit.Decorators.SuitAlias(alias: str)[source]

Alias for a SuitObject’s member

Parameters:

alias – Alias for a SuitObject’s member

ReFreSH.MobileSuit.Decorators.SuitArgInjected(arg_name: str)[source]

Indicate that Mobile Suit should Inject to this argument.

Parameters:

arg_name – The name of the argument to inject.

ReFreSH.MobileSuit.Decorators.SuitArgParser(arg_name: str, parser_name: str = '', TTarget=None, TConverter=None)[source]

Select the parser used for the certain argument

ReFreSH.MobileSuit.Decorators.SuitIgnore(func)[source]

Represents that this member should be ignored by Mobile Suit.

ReFreSH.MobileSuit.Decorators.SuitInfo(expr: str, resObj=None)[source]

Stores the information of a member to be displayed.

Parameters:
  • resObj – Resource class

  • expr – The information.