File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed
src/mkdocstrings_handlers/python/templates/material/_base Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 2828 {%- with function = class.members["__init__"] -%}
2929 {%- filter highlight(language="python", inline=True) -%}
3030 {% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}
31- {% with no_self = True %}
32- {%- include "signature.html" with context -%}
33- {% endwith %}
31+ {%- include "signature.html" with context -%}
3432 {%- endfilter -%}
3533 {%- endwith -%}
3634 {% else %}
4543
4644 {% if config.separate_signature and config.merge_init_into_class %}
4745 {% if "__init__" in class.members %}
48- {% with function = class.members["__init__"], no_self = True %}
46+ {% with function = class.members["__init__"] %}
4947 {% filter highlight(language="python", inline=False) %}
5048 {% filter format_signature(config.line_length) %}
5149 {% if show_full_path %}{{ class.path }}{% else %}{{ class.name }}{% endif %}
Original file line number Diff line number Diff line change 1010
1111 (
1212 {%- for parameter in function.parameters -%}
13- {%- if parameter.name != "self" or not no_self -%}
13+ {%- if parameter.name not in ( "self", "cls") or loop.index0 > 0 or not (function.parent and function.parent.is_class) -%}
1414
1515 {%- if parameter.kind.value == "positional-only" -%}
1616 {%- if ns.render_pos_only_separator -%}
You can’t perform that action at this time.
0 commit comments