Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade Mypy to version 0.812 #1705

Merged
merged 3 commits into from
Mar 18, 2021

Conversation

dmolenda-sumo
Copy link
Contributor

Description

Fixes #1575

Mypy Was updated to 0.812 version.

It turned out that in the existing configuration not all files from opentelemetry-api/src/opentelemetry/ and opentelemetry-api/tests/ were processed by Mypy. It was caused by Mypy 0.790 being unable to detect some of the packages.
2 typing issues were found in opentelemetry-api/src/opentelemetry/, 72 in opentelemetry-api/tests/.
I've fixed all issues in the main code. For tests, I marked all previously unchecked files as ignore. It would be good to fix them in separate PR.

How Has This Been Tested?

  • [ x] tox --recreate -e mypy
  • [ x] tox --recreate -e mypyinstalled

@dmolenda-sumo dmolenda-sumo requested review from a team, ocelotl and lzchen and removed request for a team March 17, 2021 20:55
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Mar 17, 2021

CLA Signed

The committers are authorized under a signed CLA.

@owais
Copy link
Contributor

owais commented Mar 17, 2021

Good catch! Thanks for fixing. Will review once again once CI passes.

@codeboten codeboten added the Skip Changelog PRs that do not require a CHANGELOG.md entry label Mar 18, 2021
@dmolenda-sumo dmolenda-sumo force-pushed the upgrade_mypy_to_0.812 branch from 0432023 to cdffe17 Compare March 18, 2021 09:24
@lzchen lzchen merged commit f5d10d4 into open-telemetry:main Mar 18, 2021
@dmolenda-sumo dmolenda-sumo deleted the upgrade_mypy_to_0.812 branch February 5, 2024 13:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Skip Changelog PRs that do not require a CHANGELOG.md entry
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Upgrade mypy to 0.800
4 participants