@@ -102,7 +102,7 @@ class GogsRepo(GogsEntity):
102
102
#: The owner of the repository
103
103
#:
104
104
#: :type: :class:`~GogsUser`
105
- owner = attr .ib (convert = lambda parsed_json : GogsUser .from_json (parsed_json ))
105
+ owner = attr .ib (converter = lambda parsed_json : GogsUser .from_json (parsed_json ))
106
106
107
107
#: The name of the repository
108
108
#:
@@ -145,12 +145,12 @@ def urls(self):
145
145
#: Permissions for the repository
146
146
#:
147
147
#: :type: :class:`~GogsRepo.Permissions`
148
- permissions = attr .ib (convert = lambda data : GogsRepo .Permissions .from_json (data ))
148
+ permissions = attr .ib (converter = lambda data : GogsRepo .Permissions .from_json (data ))
149
149
150
150
#: Gets the repository's parent, when a fork
151
151
#:
152
152
#: :type: :class:`~GogsRepo`
153
- parent = attr .ib (convert = lambda data : GogsRepo .from_json (data ) if data else None , default = None )
153
+ parent = attr .ib (converter = lambda data : GogsRepo .from_json (data ) if data else None , default = None )
154
154
155
155
#: The description of the repository
156
156
#:
@@ -299,7 +299,7 @@ class GogsBranch(GogsEntity):
299
299
#: The HEAD commit of the branch
300
300
#:
301
301
#: :type: :class:`~GogsCommit`
302
- commit = attr .ib (convert = lambda parsed_json : GogsCommit .from_json (parsed_json ))
302
+ commit = attr .ib (converter = lambda parsed_json : GogsCommit .from_json (parsed_json ))
303
303
304
304
305
305
@attr .s (frozen = True )
0 commit comments