Adam Johnson

Results 601 comments of Adam Johnson

Unpacking is faster, presumably because it doesn't need to look up the name `list`. So, let's leave this. ```ipython In [1]: items = list(range(10)) In [2]: %timeit list(items) 52.1 ns...

I don’t generally support running the tests outside of the `tox` setup within the repo. I would consider merging a fix if you could explain why the name is changed....

This seems like a legitimate rule to add. Would you like to make a PR?

I think you're off to a good start, but this is failing the tests. Please try running the tests locally with e.g. `tox -e py311`. Also, add some tests covering...

> Also I added new test with my code example. I don't see this test? Or a changelog note.

Thank you. This LGTM. Hopefully, a maintainer will be by soon.

You can use `git ls-files | xargs typos` - see [my post](https://adamj.eu/tech/2022/03/09/how-to-run-a-command-on-many-files-in-your-git-repository/).

Try `git ls-files -z | xargs -0 ls -l`

I've now updated my post to use null byte separators.

Unnecessary as this exists: https://pypi.python.org/pypi/backports.unittest_mock/1.0