🐛 Minor type fixes

This commit is contained in:
Taylor Beeston
2023-04-17 12:42:17 -07:00
parent f784049079
commit ea67b6772c
3 changed files with 17 additions and 8 deletions

View File

@@ -6,6 +6,8 @@ from pathlib import Path
from typing import List, Optional, Tuple
from zipimport import zipimporter
from plugin_template import AutoGPTPluginTemplate
def inspect_zip_for_module(zip_path: str, debug: bool = False) -> Optional[str]:
"""
@@ -45,7 +47,9 @@ def scan_plugins(plugins_path: Path, debug: bool = False) -> List[Tuple[str, Pat
return plugins
def load_plugins(plugins_path: Path, debug: bool = False) -> List[Module]:
def load_plugins(
plugins_path: Path, debug: bool = False
) -> List[AutoGPTPluginTemplate]:
"""Load plugins from the plugins directory.
Args: