sourcery
                                
                                
                                
                                    sourcery copied to clipboard
                            
                            
                            
                        Instant AI code reviews
### Issue description or question Refactor `if all([obj]):` into `if obj:` As it says on the tin, really! Same goes for similar usages of `any`, I suppose!
### Issue description or question I have to work on a project that is still Python 2 for work, but all the other projects I work on are Python 3.8...
### Issue description or question I note that [in your docs](https://docs.sourcery.ai/Configuration/#setting-the-python-version-assumed-by-sourcery) you support a specification of a Python version for any suggestions being made, but would it be possible to...
### Issue description or question  1. The `test2` method is actually the properly typed one, yet Sourcery fails to suggest the same simplification. 2. The suggested simplification could be...
### Issue description or question Sourcery puts the squiggly blue line underneath the commented code instead of the actual line of code.   ### Sourcery Version Not sure where...
Hi, I haven't been able to get Sourcery working so far. I am continuously getting the following error. Failed to launch Sourcery service java.util.concurrent.TimeoutException ### Sourcery Version Sourcery 0.9.8 ###...
### Issue description or question I have observed that sourcery creates an `auth.yaml` file in the `~/.config/sourcery/` directory, but it has not been documented in the docs. Could you guys...
### Issue description or question If you have code like: ``` def find_item(needle, haystack): result = haystack.search(arg1=True, arg2=False, field1=needle) if not result: result = haystack.search(arg1=True, arg2=False, field2=needle) if not result:...
### Issue description or question Hi again! It would be awesome if Sourcery were able to simplify `Union`s in type annotations, just like described in the [docs](https://docs.python.org/3/library/typing.html#typing.Union). There would be...
### Issue description or question I recently let the GitHub bot write a PR. There are some things the bot missed when it comes to the `len()` statements, I'd like...