Merge pull request #836 from markshannon/python-mutating-descriptor

Python: Fix up mutating-descriptor query
This commit is contained in:
Taus
2019-02-08 15:10:30 +01:00
committed by GitHub
4 changed files with 25 additions and 7 deletions

View File

@@ -24,6 +24,7 @@ Removes false positives seen when using Python 3.6, but not when using earlier v
| **Query** | **Expected impact** | **Change** |
|----------------------------|------------------------|------------------------------------------------------------------|
| Comparison using is when operands support \_\_eq\_\_ (`py/comparison-using-is`) | Fewer false positive results | Results where one of the objects being compared is an enum member are no longer reported. |
| Mutation of descriptor in \_\_get\_\_ or \_\_set\_\_ method (`py/mutable-descriptor`) | Fewer false positive results | Results where the mutation does not occur when calling one of the `__get__`, `__set__` or `__delete__` methods are no longer reported. |
| Unused import (`py/unused-import`) | Fewer false positive results | Results where the imported module is used in a `doctest` string are no longer reported. |
| Unused import (`py/unused-import`) | Fewer false positive results | Results where the imported module is used in a type-hint comment are no longer reported. |