Skip to content

Commit cdf4fc1

Browse files
committed
style: automatically formatted by black
1 parent 8d1b181 commit cdf4fc1

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

leancloud/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
from .errors import LeanCloudWarning
3030
from .file_ import File
3131
from .geo_point import GeoPoint
32-
from .message import Message # noqa: F401
32+
from .message import Message # noqa: F401
3333
from .object_ import Object
3434
from .push import Installation
3535
from .query import FriendshipQuery

leancloud/query.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ class CQLResult(object):
3030
3131
class_name: 查询的 class 名称
3232
"""
33+
3334
__slots__ = ["results", "count", "class_name"]
3435

3536
def __init__(self, results, count, class_name):

leancloud/role.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@ def validate(self, attrs):
6868
raise TypeError("role name must be string_types")
6969
r = re.compile(r"^[0-9a-zA-Z\-_]+$")
7070
if not r.match(new_name):
71-
raise TypeError("""
71+
raise TypeError(
72+
"""
7273
role's name can only contain alphanumeric characters, _, -, and spaces.
73-
""")
74+
"""
75+
)
7476

7577
return super(Role, self).validate(attrs)

0 commit comments

Comments
 (0)