Skip to content

Commit 556cf61

Browse files
remove unused decorators
1 parent d9869e4 commit 556cf61

File tree

71 files changed

+19
-29091
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+19
-29091
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
# Changelog
2+
## Pedantic 3.0.0
3+
- removed decorator `@count_calls`
4+
- removed decorator `@does_same_as_function`
5+
- removed decorator `@mock`
6+
- removed decorator `@rename_kwargs`
7+
- removed decorator `@timer`
8+
- removed decorator `@timer_class`
9+
- removed decorator `@uminplemented`
10+
211
## Pedantic 2.4.0
312
- migrate from unittest to pytest
413
- exclude tests from package deployment

docs/pedantic/decorators/class_decorators.html

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,6 @@ <h2 class="section-title" id="header-functions">Functions</h2>
128128
</details>
129129
<div class="desc"><p>Shortcut for @for_all_methods(pedantic_require_docstring)</p></div>
130130
</dd>
131-
<dt id="pedantic.decorators.class_decorators.timer_class"><code class="name flex">
132-
<span>def <span class="ident">timer_class</span></span>(<span>cls: ~C) ‑> ~C</span>
133-
</code></dt>
134-
<dd>
135-
<details class="source">
136-
<summary>
137-
<span>Expand source code</span>
138-
</summary>
139-
<pre><code class="python">def timer_class(cls: C) -&gt; C:
140-
&#34;&#34;&#34; Shortcut for @for_all_methods(timer) &#34;&#34;&#34;
141-
return for_all_methods(decorator=timer)(cls=cls)</code></pre>
142-
</details>
143-
<div class="desc"><p>Shortcut for @for_all_methods(timer)</p></div>
144-
</dd>
145131
<dt id="pedantic.decorators.class_decorators.trace_class"><code class="name flex">
146132
<span>def <span class="ident">trace_class</span></span>(<span>cls: ~C) ‑> ~C</span>
147133
</code></dt>
@@ -176,7 +162,6 @@ <h2 class="section-title" id="header-functions">Functions</h2>
176162
<li><code><a title="pedantic.decorators.class_decorators.for_all_methods" href="#pedantic.decorators.class_decorators.for_all_methods">for_all_methods</a></code></li>
177163
<li><code><a title="pedantic.decorators.class_decorators.pedantic_class" href="#pedantic.decorators.class_decorators.pedantic_class">pedantic_class</a></code></li>
178164
<li><code><a title="pedantic.decorators.class_decorators.pedantic_class_require_docstring" href="#pedantic.decorators.class_decorators.pedantic_class_require_docstring">pedantic_class_require_docstring</a></code></li>
179-
<li><code><a title="pedantic.decorators.class_decorators.timer_class" href="#pedantic.decorators.class_decorators.timer_class">timer_class</a></code></li>
180165
<li><code><a title="pedantic.decorators.class_decorators.trace_class" href="#pedantic.decorators.class_decorators.trace_class">trace_class</a></code></li>
181166
</ul>
182167
</li>

docs/pedantic/decorators/fn_deco_count_calls.html

Lines changed: 0 additions & 121 deletions
This file was deleted.

0 commit comments

Comments
 (0)