@@ -52,7 +52,7 @@ def _get_json_decode_error_message(response: Union[Response, ClientResponse]) ->
52
52
)
53
53
54
54
55
- def get_field (name : str , json : Optional [Any ]) -> Optional [str ]:
55
+ def _get_field (name : str , json : Optional [Any ]) -> Optional [str ]:
56
56
if json is None :
57
57
return None
58
58
if name not in json :
@@ -85,7 +85,7 @@ def id(self) -> Optional[str]:
85
85
:return: ID as string or NOT_FOUND, or None if the response is not JSON
86
86
"""
87
87
json = self .json
88
- return get_field ("id" , json )
88
+ return _get_field ("id" , json )
89
89
90
90
@property
91
91
def is_success (self ) -> bool :
@@ -151,7 +151,7 @@ async def id(self) -> Optional[str]:
151
151
:return: ID as string or NOT_FOUND, or None if the response is not JSON
152
152
"""
153
153
json = await self .json
154
- return get_field ("id" , json )
154
+ return _get_field ("id" , json )
155
155
156
156
@property
157
157
def is_success (self ) -> bool :
@@ -184,7 +184,7 @@ async def message(self) -> Optional[str]:
184
184
json = await self .json
185
185
if json is None :
186
186
return None
187
- return get_field ("message" , json )
187
+ return _get_field ("message" , json )
188
188
189
189
@property
190
190
async def messages (self ) -> Optional [Tuple [str , ...]]:
0 commit comments