##// END OF EJS Templates
Added sorting on counter and passed all tests (#14032)...
Added sorting on counter and passed all tests (#14032) Creating a pull request to address changes requested in #13484 to update logic for printing Counter objects in terminal. This is now matching the standard Python console and pprint outputs which sort by default in a descending order. Additionally, I have added an additional test case to test_collections_counter in test_pretty.py to test for descending order:

File last commit:

r28219:05f6a6e8
r28232:396593e7 merge
Show More
pyproject.toml
32 lines | 866 B | text/plain | TOMLLexer
[build-system]
requires = ["setuptools >= 51.0.0"]
build-backend = "setuptools.build_meta"
[tool.mypy]
python_version = 3.9
ignore_missing_imports = true
follow_imports = 'silent'
exclude = [
'test_\.+\.py',
'IPython.utils.tests.test_wildcard',
'testing',
'tests',
'PyColorize.py',
'_process_win32_controller.py',
'IPython/core/application.py',
'IPython/core/completerlib.py',
'IPython/core/displaypub.py',
'IPython/core/historyapp.py',
#'IPython/core/interactiveshell.py',
'IPython/core/magic.py',
'IPython/core/profileapp.py',
# 'IPython/core/ultratb.py',
'IPython/lib/deepreload.py',
'IPython/lib/pretty.py',
'IPython/sphinxext/ipython_directive.py',
'IPython/terminal/ipapp.py',
'IPython/utils/_process_win32.py',
'IPython/utils/path.py',
'IPython/utils/timing.py',
'IPython/utils/text.py'
]