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

Add test case to check mypy error in generated client and fix existing mypy errors #914

Merged
merged 7 commits into from
Sep 24, 2024

Conversation

Jotheeswaran-Nandagopal
Copy link
Contributor

@Jotheeswaran-Nandagopal Jotheeswaran-Nandagopal commented Sep 23, 2024

What does this Pull Request accomplish?

  • Add test case for checking the mypy issues in the generated Measurement Plug-In Client.
  • Fix the existing type hints and mypy issues in Mako template.

Why should this Pull Request be merged?

  • Fix the existing type hints in the mako template.
  • Add mypy check as a test case to check the type hints in the generated Measurement Plug-In Client.

What testing has been done?

  • Done manual testing.
  • Existing and new automation tests passed.

Copy link

github-actions bot commented Sep 23, 2024

Test Results

    40 files  ± 0      40 suites  ±0   55m 32s ⏱️ + 3m 57s
   693 tests + 1     693 ✅ + 1      0 💤 ±0  0 ❌ ±0 
16 830 runs  +10  15 760 ✅ +10  1 070 💤 ±0  0 ❌ ±0 

Results for commit 72987a1. ± Comparison against base commit 868b6db.

♻️ This comment has been updated with latest results.

@Jotheeswaran-Nandagopal Jotheeswaran-Nandagopal merged commit 58ced1a into main Sep 24, 2024
17 checks passed
@Jotheeswaran-Nandagopal Jotheeswaran-Nandagopal deleted the users/jothees/fix-mypy-issues branch September 24, 2024 17:23
Jotheeswaran-Nandagopal added a commit that referenced this pull request Sep 24, 2024
…g mypy errors (#914)

* fix: add test case to run mypy in the generated client

(cherry picked from commit 58ced1a)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These type hints are still wrong. They don't match the runtime type. None of the list outputs are actually lists.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bkeryan pushed a commit that referenced this pull request Sep 24, 2024
…rated client and fix existing mypy errors (#929)

Add test case to check mypy error in generated client and fix existing mypy errors (#914)

* fix: add test case to run mypy in the generated client

(cherry picked from commit 58ced1a)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants