diff --git a/changelog b/changelog index 195c05e2..5c03fe10 100644 --- a/changelog +++ b/changelog @@ -1,3 +1,10 @@ +## [2.7.1] - 2020-06-18 +### Fixed +- LeanEngineError now encodes valid HTTP status code. + Previously it reused the `code` parameter, which would result in an invalid HTTP status code encoded, + if the value of the `code` parameter is not a valid HTTP status code. + You can also use the new status parameter to specify the HTTP status code now. + ## [2.7.0] - 2020-05-21 ### Added - `_messageUpdate` hook diff --git a/docs/_modules/leancloud/query.html b/docs/_modules/leancloud/query.html index f4bb95de..12e6a5bb 100644 --- a/docs/_modules/leancloud/query.html +++ b/docs/_modules/leancloud/query.html @@ -178,6 +178,7 @@
class_name: 查询的 class 名称
"""
+
__slots__ = ["results", "count", "class_name"]
def __init__(self, results, count, class_name):
diff --git a/docs/_modules/leancloud/role.html b/docs/_modules/leancloud/role.html
index 89681a85..66673ab8 100644
--- a/docs/_modules/leancloud/role.html
+++ b/docs/_modules/leancloud/role.html
@@ -216,9 +216,11 @@ leancloud.role 源代码
raise TypeError("role name must be string_types")
r = re.compile(r"^[0-9a-zA-Z\-_]+$")
if not r.match(new_name):
- raise TypeError("""
- role's name can only contain alphanumeric characters, _, -, and spaces.
- """)
+ raise TypeError(
+ """
+ role's name can only contain alphanumeric characters, _, -, and spaces.
+ """
+ )
return super(Role, self).validate(attrs)