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

unidiomatic-typecheck is no longer emitted for in and not in operators #3522

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

PCManticore
Copy link
Contributor

Steps

  • Add yourself to CONTRIBUTORS if you are a new contributor.
  • Add a ChangeLog entry describing what your PR does.
  • If it's a new feature or an important bug fix, add a What's New entry in doc/whatsnew/<current release.rst>.
  • Write a good description on what the PR does.

Description

The original use case for this check was to catch old style type checking idioms
such as type(x) is ..., but it should not have been extended to handle in operators
as well.

Type of Changes

Type
🐛 Bug fix

Related Issue

Close #3337

…n`` operators

The original use case for this check was to catch old style type checking idioms
such as `type(x) is ...`, but it should not have been extended to handle `in` operators
as well.

Close #3337
@PCManticore PCManticore changed the title unidiomatic-typecheck is no longer emitted for in and not in operators unidiomatic-typecheck is no longer emitted for in and not in operators Apr 27, 2020
@PCManticore PCManticore merged commit db0d55b into master Apr 27, 2020
@PCManticore PCManticore deleted the unidiomatic-type-check-restrained branch April 27, 2020 08:12
@coveralls
Copy link

coveralls commented Apr 27, 2020

Coverage Status

Coverage remained the same at 90.449% when pulling 61dc477 on unidiomatic-type-check-restrained into bbe2151 on master.

@coveralls
Copy link

Coverage Status

Coverage decreased (-0.04%) to 90.405% when pulling 61dc477 on unidiomatic-type-check-restrained into bbe2151 on master.

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.

False positive for unidiomatic-typecheck
2 participants