File: _local_ext.py

package info (click to toggle)
mplcursors 0.6-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 400 kB
  • sloc: python: 1,915; makefile: 14; sh: 9
file content (7 lines) | stat: -rw-r--r-- 241 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
from sphinx_gallery.sorting import ExampleTitleSortKey


class CustomSortKey(ExampleTitleSortKey):
    def __call__(self, filename):
        return ("" if filename == "basic.py"  # goes first
                else super().__call__(filename))