diff --git a/dank_mids/types.py b/dank_mids/types.py index 4dba34c9..bd6256d6 100644 --- a/dank_mids/types.py +++ b/dank_mids/types.py @@ -99,8 +99,8 @@ def exception(self) -> BadResponse: return PayloadTooLarge(self) if self.payload_too_large else BadResponse(self) @property - def payload_too_large(self): - any(err in self.error.message for err in constants.TOO_MUCH_DATA_ERRS) + def payload_too_large(self) -> bool: + return any(err in self.error.message for err in constants.TOO_MUCH_DATA_ERRS) def to_dict(self, method: Optional[str] = None) -> Dict[str, Any]: data = {}