black formatting

This commit is contained in:
2021-01-01 13:11:09 -05:00
parent a203828c11
commit 24f424a7af
3 changed files with 18 additions and 4 deletions
+8 -2
View File
@@ -84,7 +84,10 @@ class AsyncJSONKey:
return await self._error("Invalid JSON data read", read)
if not self._is_valid_type(data):
return await self._error(self._type_mismatch_msg(data), read,)
return await self._error(
self._type_mismatch_msg(data),
read,
)
return data
async def _error(self, error: str, read: str) -> JSON_TYPE:
@@ -209,7 +212,10 @@ class JSONKey(AsyncJSONKey):
data = read
if not self._is_valid_type(data):
return self._error(self._type_mismatch_msg(data), read,)
return self._error(
self._type_mismatch_msg(data),
read,
)
return data
def _error(self, error: str, read: str) -> JSON_TYPE: