Skip to content
This repository has been archived by the owner on Mar 25, 2021. It is now read-only.

no-unbound-method: Allow use as condition #2834

Merged
merged 1 commit into from May 30, 2017

Conversation

andy-hanson
Copy link
Contributor

PR checklist

  • Addresses an existing issue: #0000
  • New feature, bugfix, or enhancement
    • Includes tests
  • Documentation update

Overview of change:

Allows an unbound method to occur as a condition. This is useful if you don't have strict-boolean-expressions turned on and the method is optional, so you would use if (x.method) x.method().

CHANGELOG.md entry:

[bugfix] no-unbound-method: Allow unbound method to be used as a condition

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants