Return the fully qualified name of a method or None if a method wasn't passed in.
(command_method: BoundCommandFunc)
| 248 | |
| 249 | @staticmethod |
| 250 | def _fully_qualified_name(command_method: BoundCommandFunc) -> str: |
| 251 | """Return the fully qualified name of a method or None if a method wasn't passed in.""" |
| 252 | try: |
| 253 | return f"{command_method.__module__}.{command_method.__qualname__}" |
| 254 | except AttributeError: |
| 255 | return "" |
| 256 | |
| 257 | def __contains__(self, command_method: BoundCommandFunc) -> bool: |
| 258 | """Return whether a given method's parser is in self. |