Steve Dignam
Steve Dignam
```python # err, can be `for foo in bar` for _idx, foo in enumerate(bar): ... # err, can be `for value in foo.values()` for _key, value in foo.items(): ... #...
```python # err def test_foo() -> None: try: bar() except BarError: raise pytest.fail("some bad error") # ok def test_foo() -> None: bar() ```
fixes: https://github.com/sbdchd/flake8-pie/issues/79
```python # err foo = len([x for x in bar if x.buzz > bar]) foo = len([n for n in buzz if n.bar is not True]) foo = len([x for...
maybe there's an edge case when someone overloads this? not sure
```python # error foo.__setitem__("bar" , bar) # ok foo["bar"] = bar buzz(foo.__setitem__) ```
Instead can be rewritten as `len(set(all_errors))` this might be too infrequent to bother with a rule
I was wondering if you'd be open to adding python types directly to the repo to support `mypy` and similar tools. Since `rure` supports python 2.7 the comment based type...
I think a simple output of the port would be good for ease of use.
Sometimes the connection to the redis host can be severed for a little bit resulting in a `ConnectionLostError` error. Ideally the redis client would handle these more gracefully, but as...