Skip to content

Commit

Permalink
Fix typing error
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
leocardao committed Oct 31, 2024
1 parent c99dc0b commit 20c45d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/e3/python/pypi.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 20c45d8

Please sign in to comment.