GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — docs: Skip inherited methods, use autosummary only for big classes (#… · google/bigframes@a951249

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • third_party/sphinx/ext/autosummary/templates/autosummary
    • class.rst
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎third_party/sphinx/ext/autosummary/templates/autosummary/class.rst‎

Copy file name to clipboardExpand all lines: third_party/sphinx/ext/autosummary/templates/autosummary/class.rst
+13-2Lines changed: 13 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,41 @@
22

33
.. currentmodule:: {{ module }}
44

5+
{% set is_pandas = module.startswith("bigframes.pandas") or module.startswith("bigframes.geopandas") %}
6+
{% set skip_inherited = is_pandas and not module.startswith("bigframes.pandas.typing.api") %}
7+
8+
{% if is_pandas %}
59
.. autoclass:: {{ objname }}
610
:no-members:
711

8-
{% block methods %}
9-
1012
{% block attributes %}
1113
{% if attributes %}
1214
.. rubric:: {{ _('Attributes') }}
1315

1416
.. autosummary::
1517
:toctree:
1618
{% for item in attributes %}
19+
{%- if not skip_inherited or not item in inherited_members%}
1720
~{{ name }}.{{ item }}
21+
{%- endif %}
1822
{%- endfor %}
1923
{% endif %}
2024
{% endblock %}
2125

26+
{% block methods %}
2227
{% if methods %}
2328
.. rubric:: {{ _('Methods') }}
2429

2530
.. autosummary::
2631
:toctree:
32+
2733
{% for item in methods %}
34+
{%- if not skip_inherited or not item in inherited_members%}
2835
~{{ name }}.{{ item }}
36+
{%- endif %}
2937
{%- endfor %}
3038
{% endif %}
3139
{% endblock %}
40+
{% else %}
41+
.. autoclass:: {{ objname }}
42+
{% endif %}

0 commit comments

Comments
0 (0)
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.