From 20c45d89d83ddb10d3085c8baccf8a5db7066b76 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Cardao?= Date: Thu, 31 Oct 2024 16:34:15 +0100 Subject: [PATCH] Fix typing error For an unknow reason, mypy started to generate the following error: - src/e3/python/pypi.py:682: error: Need type annotation for reporter [var-annotated] So, we fix it by adding the explicitly the type. --- src/e3/python/pypi.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/e3/python/pypi.py b/src/e3/python/pypi.py index 8a159b9c..382a5174 100644 --- a/src/e3/python/pypi.py +++ b/src/e3/python/pypi.py @@ -679,7 +679,7 @@ def _requirements_closure(self) -> dict: provider = PyPIProvider( get_pip_env(platform, python_version=self.python3_version), self.pypi ) - reporter = BaseReporter() + reporter: BaseReporter = BaseReporter() resolver: Resolver = Resolver(provider, reporter) try: result = resolver.resolve(self.requirements, max_rounds=500)