Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', pypy-3.6, pypy-3.7, pypy-3.8]
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10', '3.11', pypy-3.6, pypy-3.7, pypy-3.8]

steps:
- uses: actions/checkout@v2
Expand Down
4 changes: 2 additions & 2 deletions collections_extended/indexed_dict.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ def _pop_key(self, key, has_default):
else:
raise
key2, value2 = self._list.pop(index)
assert key is key2
assert value is value2
assert key == key2, f"{key!r} != {key2!r}"
assert value is value2, f"{value} is not {value2}"

return index, value

Expand Down
7 changes: 3 additions & 4 deletions collections_extended/setlists.py
Original file line number Diff line number Diff line change
Expand Up @@ -564,14 +564,13 @@ def __ixor__(self, other):
return self

# New methods
def shuffle(self, random=None):
def shuffle(self, *args, **kwargs):
"""Shuffle all of the elements in self in place.

Args:
random: A function returning a random float in [0.0, 1.0). If none
is passed, the default from `random.shuffle` will be used.
An arguments accepted by ``random.shuffle``
"""
random_.shuffle(self._list, random=random)
random_.shuffle(self._list, *args, **kwargs)
for i, elem in enumerate(self._list):
self._dict[elem] = i

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ classifiers = [
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: PyPy",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries",
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36, py37, py38, py39, py310, pypy36, pypy37, pypy38
envlist = py36, py37, py38, py39, py310, py311, pypy36, pypy37, pypy38
isolated_build = True

[testenv]
Expand Down