← 返回首页
docs(ext): fix rendering for RequiredOptional dataclass · python-gitlab/python-gitlab@4d431e5 · GitHub
Skip to content

Navigation Menu

Toggle navigation
Sign in
Appearance settings
Search or jump to...

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Resetting focus

Commit 4d431e5

Browse files
authored andcommitted
docs(ext): fix rendering for RequiredOptional dataclass
1 parent 0f607f6 commit 4d431e5

1 file changed

Lines changed: 10 additions & 10 deletions

File tree

‎docs/ext/manager_tmpl.j2‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,43 +7,43 @@
77

88
{% if cls._create_attrs %}
99
**Object Creation**
10-
{% if cls._create_attrs[0] %}
11-
Mandatory attributes for object create:
10+
{% if cls._create_attrs.required %}
11+
Required attributes for object create:
1212
{% for item in cls._create_attrs.required %}
1313
- ``{{ item }}``
1414
{% endfor %}
1515
{% endif %}
16-
{% if cls._create_attrs[1] %}
16+
{% if cls._create_attrs.optional %}
1717
Optional attributes for object create:
1818
{% for item in cls._create_attrs.optional %}
1919
- ``{{ item }}``
2020
{% endfor %}
2121
{% endif %}
22-
{% if cls._create_attrs[2] %}
22+
{% if cls._create_attrs.exclusive %}
2323
Mutually exclusive attributes for object create:
24-
{% for item in cls._create_attrs.exlusive %}
24+
{% for item in cls._create_attrs.exclusive %}
2525
- ``{{ item }}``
2626
{% endfor %}
2727
{% endif %}
2828
{% endif %}
2929

3030
{% if cls._update_attrs %}
3131
**Object update**
32-
{% if cls._update_attrs[0] %}
33-
Mandatory attributes for object update:
32+
{% if cls._update_attrs.required %}
33+
Required attributes for object update:
3434
{% for item in cls._update_attrs.required %}
3535
- ``{{ item }}``
3636
{% endfor %}
3737
{% endif %}
38-
{% if cls._update_attrs[1] %}
38+
{% if cls._update_attrs.optional %}
3939
Optional attributes for object update:
4040
{% for item in cls._update_attrs.optional %}
4141
- ``{{ item }}``
4242
{% endfor %}
4343
{% endif %}
44-
{% if cls._update_attrs[2] %}
44+
{% if cls._update_attrs.exclusive %}
4545
Mutually exclusive attributes for object update:
46-
{% for item in cls._update_attrs.exlusive %}
46+
{% for item in cls._update_attrs.exclusive %}
4747
- ``{{ item }}``
4848
{% endfor %}
4949
{% endif %}

0 commit comments

Comments
 (0)

Footer

© 2026 GitHub, Inc.