tinyapi/application.py
def remove_extension(self, extension_name: str) -> None:
        """
            This method is used to remove an extension from the application.
        """
        try:
            extension = [extension for extension in self.extensions if extension.name == extension_name][0]
        except IndexError:
            raise ExtensionNotFound(f"Extension {extension_name} not found.")

        for rule in extension.rules:
            self.rules.remove(rule)

        for error in extension.errors:
            self.errors.remove(error)

        self.extensions.remove(extension)

        logger.debug(f"* Extension {extension_name} removed.")

            This method is used to remove an extension from the application.
        
This method is used to remove an extension from the application.
This method is used to remove an extension from the application .
def remove_extension(self, extension_name: str) -> None:
        try:
            extension = [extension for extension in self.extensions if extension.name == extension_name][0]
        except IndexError:
            raise ExtensionNotFound(f"Extension {extension_name} not found.")
        for rule in extension.rules:
            self.rules.remove(rule)
        for error in extension.errors:
            self.errors.remove(error)
        self.extensions.remove(extension)
        logger.debug(f"* Extension {extension_name} removed.")
def remove_extension ( self , extension_name : str ) -> None : try : extension = [ extension for extension in self . extensions if extension . name == extension_name ] [ 0 ] except IndexError : raise ExtensionNotFound ( f"Extension {extension_name} not found." ) for rule in extension . rules : self . rules . remove ( rule ) for error in extension . errors : self . errors . remove ( error ) self . extensions . remove ( extension ) logger . debug ( f"* Extension {extension_name} removed." )
This method is used to remove an extension from the application.
This method is used to remove an extension from the application .
"""
            This method is used to remove an extension from the application.
        """
self
extension_name
str