Skip to content

Commit

Permalink
Merge pull request #481 from weakish/release-271
Browse files Browse the repository at this point in the history
docs: release 2.7.1
  • Loading branch information
weakish authored Jun 18, 2020
2 parents a243a77 + 621bcc6 commit 88e827e
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
7 changes: 7 additions & 0 deletions changelog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
1 change: 1 addition & 0 deletions docs/_modules/leancloud/query.html
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ <h1>leancloud.query 源代码</h1><div class="highlight"><pre>

<span class="sd"> class_name: 查询的 class 名称</span>
<span class="sd"> &quot;&quot;&quot;</span>

<span class="vm">__slots__</span> <span class="o">=</span> <span class="p">[</span><span class="s2">&quot;results&quot;</span><span class="p">,</span> <span class="s2">&quot;count&quot;</span><span class="p">,</span> <span class="s2">&quot;class_name&quot;</span><span class="p">]</span>

<span class="k">def</span> <span class="nf">__init__</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">results</span><span class="p">,</span> <span class="n">count</span><span class="p">,</span> <span class="n">class_name</span><span class="p">):</span>
Expand Down
8 changes: 5 additions & 3 deletions docs/_modules/leancloud/role.html
Original file line number Diff line number Diff line change
Expand Up @@ -216,9 +216,11 @@ <h1>leancloud.role 源代码</h1><div class="highlight"><pre>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;role name must be string_types&quot;</span><span class="p">)</span>
<span class="n">r</span> <span class="o">=</span> <span class="n">re</span><span class="o">.</span><span class="n">compile</span><span class="p">(</span><span class="sa">r</span><span class="s2">&quot;^[0-9a-zA-Z\-_]+$&quot;</span><span class="p">)</span>
<span class="k">if</span> <span class="ow">not</span> <span class="n">r</span><span class="o">.</span><span class="n">match</span><span class="p">(</span><span class="n">new_name</span><span class="p">):</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span><span class="s2">&quot;&quot;&quot;</span>
<span class="s2"> role&#39;s name can only contain alphanumeric characters, _, -, and spaces.</span>
<span class="s2"> &quot;&quot;&quot;</span><span class="p">)</span>
<span class="k">raise</span> <span class="ne">TypeError</span><span class="p">(</span>
<span class="sd">&quot;&quot;&quot;</span>
<span class="sd"> role&#39;s name can only contain alphanumeric characters, _, -, and spaces.</span>
<span class="sd"> &quot;&quot;&quot;</span>
<span class="p">)</span>

<span class="k">return</span> <span class="nb">super</span><span class="p">(</span><span class="n">Role</span><span class="p">,</span> <span class="bp">self</span><span class="p">)</span><span class="o">.</span><span class="n">validate</span><span class="p">(</span><span class="n">attrs</span><span class="p">)</span></div></div>
</pre></div>
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

setup(
name='leancloud',
version='2.7.0',
version='2.7.1',
description='LeanCloud Python SDK',
url='https://leancloud.cn/',
author='asaka',
Expand Down

0 comments on commit 88e827e

Please sign in to comment.