diff --git a/aiohttp_debugtoolbar/panels/versions.py b/aiohttp_debugtoolbar/panels/versions.py index 7a59eb1f..671d0638 100644 --- a/aiohttp_debugtoolbar/panels/versions.py +++ b/aiohttp_debugtoolbar/panels/versions.py @@ -37,9 +37,6 @@ def get_packages(cls) -> List[Dict[str, str]]: if VersionDebugPanel.packages: return VersionDebugPanel.packages - if Distribution is None: - return () # type: ignore[unreachable] - packages = [] for distribution in Distribution.discover(): name = distribution.metadata["Name"]