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

Update mypy configuration for tests #2124

Merged
merged 1 commit into from
Oct 22, 2024
Merged

Conversation

jonathangreen
Copy link
Member

Description

Update mypy configuration for our tests to:

  • Disable union-attr check
  • Disable warn-unreachable

Motivation and Context

Both of these flags don't provide a lot of value in our tests, and cause us to have to add a bunch of ignore comments, so just disabling them seems like a better option.

How Has This Been Tested?

  • Mypy / tests in CI

Checklist

  • I have updated the documentation accordingly.
  • All new and existing tests passed.

@jonathangreen jonathangreen force-pushed the chore/mypy-config-tests branch from cf2fecd to b286414 Compare October 18, 2024 18:45
@jonathangreen jonathangreen requested a review from a team October 18, 2024 18:46
Copy link
Contributor

@tdilauro tdilauro left a comment

Choose a reason for hiding this comment

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

LGTM!

@jonathangreen jonathangreen force-pushed the chore/mypy-config-tests branch from aa92fd1 to 869b407 Compare October 22, 2024 19:20
@jonathangreen jonathangreen force-pushed the chore/mypy-config-tests branch from 869b407 to 5fc8261 Compare October 22, 2024 19:21
@jonathangreen jonathangreen merged commit 743d8f7 into main Oct 22, 2024
20 checks passed
@jonathangreen jonathangreen deleted the chore/mypy-config-tests branch October 22, 2024 19:31
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.

2 participants