mirror of
https://github.com/status-im/PyGithub.git
synced 2026-09-01 03:11:09 +00:00
25 lines
706 B
Python
25 lines
706 B
Python
{% if method.is_mutation %}
|
|
self.__useAttributes( data )
|
|
{% endif %}
|
|
|
|
{% if method.type.simple %}
|
|
|
|
{% if method.type.name == "bool" %}
|
|
return status == 204
|
|
{% endif %}
|
|
|
|
{% else %}
|
|
|
|
{% if method.type.cardinality == "scalar" %}
|
|
return {% if method.type.name != class.name %}{{ method.type.name }}.{% endif %}{{ method.type.name }}( self.__requester, data, lazy = True )
|
|
{% endif %}
|
|
|
|
{% if method.type.cardinality == "list" %}
|
|
return [
|
|
{% if method.type.name != class.name %}{{ method.type.name }}.{% endif %}{{ method.type.name }}( self.__requester, element, lazy = True )
|
|
for element in data
|
|
]
|
|
{% endif %}
|
|
|
|
{% endif %}
|