mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-02 03:41:08 +00:00
Refactor switches in templates: step 2
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
{% if method.type.name == "bool" %}status == 204
|
||||
{% else %}{% if method.type.simple %}data
|
||||
{% else %}{% if method.type.cardinality == "scalar" %}{% if method.type.name != class.name %}{{ method.type.name }}.{% endif %}{{ method.type.name }}( self._requester, data, completed = True )
|
||||
{% else %}PaginatedList.PaginatedList(
|
||||
{% if method.type.name != class.name %}{{ method.type.name }}.{% endif %}{{ method.type.name }},
|
||||
self._requester,
|
||||
headers,
|
||||
data
|
||||
)
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user