diff --git a/aiohttp_debugtoolbar/panels/versions.py b/aiohttp_debugtoolbar/panels/versions.py index 49eebd1..0f2401b 100644 --- a/aiohttp_debugtoolbar/panels/versions.py +++ b/aiohttp_debugtoolbar/panels/versions.py @@ -15,8 +15,8 @@ class _Package(TypedDict): version: str lowername: str name: str - dependencies: list[str] - url: str + dependencies: List[str] + url: Optional[str] class VersionDebugPanel(DebugPanel): @@ -45,7 +45,7 @@ def get_packages(cls) -> List[Dict[str, str]]: if VersionDebugPanel.packages: return VersionDebugPanel.packages - packages: list[_Package] = [] + packages: List[_Package] = [] for distribution in Distribution.discover(): name = distribution.metadata["Name"] dependencies = [d for d in distribution.requires or ()]