| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
asfaltboy/issue-830-e721-types-regex-incorrect"
This reverts commit 8b5c964321776b2fe8dfd25f4f18db0ffbdbd281, reversing
changes made to 9777ac5a8ea1ae14e70bfb27063e2e7c0daa06e3.
|
| |
|
|
|
|
|
|
|
|
|
| |
* `type(a) is type(b)` should still fail
* same for `type(a) != type(b) or type(a) == type(ccc)`
* We cannot assume `res == types.IntType` is wrong as the identity
of the objects is not known at check time, either way
it shouldn't be a E721 as it doesn't involve type(...) function
as described in PEP8
|
|
|
|
|
|
|
|
|
|
| |
Any `types.*Type*` matches incorrectly as a `type(...)` comparison;
the regex `COMPARE_TYPE_REGEX` seems a bit too complicated
for what should be a simple comparison case.
Ref: https://github.com/PyCQA/pycodestyle/blob/main/pycodestyle.py#L147-L148
This reproduces the case in #830
|
| |
|
| |
|
| |
|
| |
|
|
|