Skip to content

Commit ee0d546

Browse files
Improved documentation and code readability
1 parent 53b2cfc commit ee0d546

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Transpose Dictionary
1+
🎲 Transpose Dictionary
22
======================
33
|pip| |downloads| |github|
44

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def find_version(*file_paths):
4242
# https://packaging.python.org/en/latest/single_source_version.html
4343
version=__version__,
4444

45-
description='Small customizable multiprocessing multi-proxy crawler.',
45+
description='Package to transpose dictionaries across any axes, just like n-dimensional matrices.',
4646
long_description=long_description,
4747

4848
# The project's main homepage.

transpose_dict/transpose_dict.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,9 +52,9 @@ def axis_keys(dictionary: Dict, axis: int) -> Set[Any]:
5252
The set of keys at given axis
5353
"""
5454
return (
55-
set.union(*[axis_keys(value, axis - 1) for value in dictionary.values()])
56-
if axis
57-
else set(dictionary.keys())
55+
set.union(*[set(axis_keys(value, axis - 1)) for value in dictionary.values()])
56+
if axis != 0
57+
else dictionary.keys()
5858
)
5959

6060

0 commit comments

Comments
 (0)