@@ -100,7 +100,7 @@ def contextual_complete(self) -> List[str]:
100100 def _raw_command_completer (
101101 self , text , line , start_index , end_index
102102 ) -> List [str ]:
103- """ Complete command w/o any argument """
103+ """Complete command w/o any argument"""
104104 results = [
105105 command
106106 for command in self .contextual_complete ()
@@ -112,7 +112,7 @@ def _raw_command_completer(
112112
113113 @staticmethod
114114 def _split_inline_commands (line : str ) -> List [str ]:
115- """ Split multiple inline commands. """
115+ """Split multiple inline commands."""
116116 parsed = shlex .split (line , posix = False )
117117
118118 commands = []
@@ -139,14 +139,14 @@ def _split_inline_commands(line: str) -> List[str]:
139139
140140 @staticmethod
141141 def _parse_line (line : str ) -> List [str ]:
142- """ Split input line into command's name and its arguments. """
142+ """Split input line into command's name and its arguments."""
143143 try :
144144 return shlex .split (line )
145145 except ValueError as err :
146146 raise RiposteException (err )
147147
148148 def _get_command (self , command_name : str ) -> Command :
149- """ Resolve command name into registered `Command` object. """
149+ """Resolve command name into registered `Command` object."""
150150 try :
151151 return self ._commands [command_name ]
152152 except KeyError :
@@ -195,7 +195,7 @@ def command(
195195 description : str = "" ,
196196 guides : Dict [str , Iterable [Callable ]] = None ,
197197 ) -> Callable :
198- """ Decorator for bounding command with handling function. """
198+ """Decorator for bounding command with handling function."""
199199
200200 def wrapper (func : Callable ):
201201 if name not in self ._commands :
@@ -207,7 +207,7 @@ def wrapper(func: Callable):
207207 return wrapper
208208
209209 def complete (self , command : str ) -> Callable :
210- """ Decorator for bounding complete function with `Command`. """
210+ """Decorator for bounding complete function with `Command`."""
211211
212212 def wrapper (func : Callable ):
213213 cmd = self ._get_command (command )
0 commit comments