Skip to content

Commit 1180ad8

Browse files
Merge pull request #56 from connor-makowski/2.1.0
2.1.0: Add support for Typing.Any and check subclasses by default
2 parents c5207e2 + d524c16 commit 1180ad8

Some content is hidden

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

58 files changed

+4754
-1240
lines changed

README.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ The main changes in version 2.0.0 revolve around migrating towards the standard
9999
- `Tuple`
100100
- `Union`
101101
- `Optional`
102+
- `Any`
102103
- `Sized`
103104
- Essentially creates a union of:
104105
- `list`, `tuple`, `dict`, `set`, `str`, `bytes`, `bytearray`, `memoryview`, `range`
@@ -335,15 +336,12 @@ y=my_class(Foo) # Works great!
335336
x=my_class(Foo()) # Fails
336337
```
337338

338-
## Validate classes with inheritance
339+
By default, type_enforced will check for subclasses of a class when validating types. This means that if you pass a subclass of the expected class, it will pass the type check.
339340

340-
A special helper utility is provided to get all the subclasses of a class (with delayed evaluation - so you can validate subclasses even if they were defined later or in other files).
341-
342-
See: [WithSubclasses](https://connor-makowski.github.io/type_enforced/type_enforced/utils.html#WithSubclasses) for more information.
341+
Note: Uninitialized class objects that are passed are not checked for subclasses.
343342

344343
```py
345344
import type_enforced
346-
from type_enforced.utils import WithSubclasses
347345

348346
class Foo:
349347
pass
@@ -355,7 +353,7 @@ class Baz:
355353
pass
356354

357355
@type_enforced.Enforcer
358-
def my_fn(custom_class: WithSubclasses(Foo)):
356+
def my_fn(custom_class: Foo):
359357
pass
360358

361359
my_fn(Foo()) # Passes as expected
18.3 KB
Binary file not shown.

dist/type_enforced-2.1.0.tar.gz

26.6 KB
Binary file not shown.

docs/0.0.16/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ <h2>Submodules</h2>
3131
<footer>
3232
<select id="version-selector">
3333
<option value="latest">latest</option>
34+
<option value="2.1.0">2.1.0</option>
3435
<option value="2.0.0">2.0.0</option>
3536
<option value="1.10.2">1.10.2</option>
3637
<option value="1.9.0">1.9.0</option>

docs/0.0.16/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.1.1/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ <h2>Submodules</h2>
3131
<footer>
3232
<select id="version-selector">
3333
<option value="latest">latest</option>
34+
<option value="2.1.0">2.1.0</option>
3435
<option value="2.0.0">2.0.0</option>
3536
<option value="1.10.2">1.10.2</option>
3637
<option value="1.9.0">1.9.0</option>

docs/1.1.1/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.10.2/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ <h2>Submodules</h2>
5555
<footer>
5656
<select id="version-selector">
5757
<option value="latest">latest</option>
58+
<option value="2.1.0">2.1.0</option>
5859
<option value="2.0.0">2.0.0</option>
5960
<option value="1.10.2">1.10.2</option>
6061
<option value="1.9.0">1.9.0</option>

docs/1.10.2/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.10.2/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ <h2>API Documentation</h2>
8484
<footer>
8585
<select id="version-selector">
8686
<option value="latest">latest</option>
87+
<option value="2.1.0">2.1.0</option>
8788
<option value="2.0.0">2.0.0</option>
8889
<option value="1.10.2">1.10.2</option>
8990
<option value="1.9.0">1.9.0</option>

docs/1.2.0/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ <h2>Submodules</h2>
3131
<footer>
3232
<select id="version-selector">
3333
<option value="latest">latest</option>
34+
<option value="2.1.0">2.1.0</option>
3435
<option value="2.0.0">2.0.0</option>
3536
<option value="1.10.2">1.10.2</option>
3637
<option value="1.9.0">1.9.0</option>

docs/1.2.0/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.3.0/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2>Submodules</h2>
3232
<footer>
3333
<select id="version-selector">
3434
<option value="latest">latest</option>
35+
<option value="2.1.0">2.1.0</option>
3536
<option value="2.0.0">2.0.0</option>
3637
<option value="1.10.2">1.10.2</option>
3738
<option value="1.9.0">1.9.0</option>

docs/1.3.0/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.3.0/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ <h2>API Documentation</h2>
3939
<footer>
4040
<select id="version-selector">
4141
<option value="latest">latest</option>
42+
<option value="2.1.0">2.1.0</option>
4243
<option value="2.0.0">2.0.0</option>
4344
<option value="1.10.2">1.10.2</option>
4445
<option value="1.9.0">1.9.0</option>

docs/1.4.0/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2>Submodules</h2>
3232
<footer>
3333
<select id="version-selector">
3434
<option value="latest">latest</option>
35+
<option value="2.1.0">2.1.0</option>
3536
<option value="2.0.0">2.0.0</option>
3637
<option value="1.10.2">1.10.2</option>
3738
<option value="1.9.0">1.9.0</option>

docs/1.4.0/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.4.0/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.5.0/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2>Submodules</h2>
3232
<footer>
3333
<select id="version-selector">
3434
<option value="latest">latest</option>
35+
<option value="2.1.0">2.1.0</option>
3536
<option value="2.0.0">2.0.0</option>
3637
<option value="1.10.2">1.10.2</option>
3738
<option value="1.9.0">1.9.0</option>

docs/1.5.0/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.5.0/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ <h2>API Documentation</h2>
6666
<footer>
6767
<select id="version-selector">
6868
<option value="latest">latest</option>
69+
<option value="2.1.0">2.1.0</option>
6970
<option value="2.0.0">2.0.0</option>
7071
<option value="1.10.2">1.10.2</option>
7172
<option value="1.9.0">1.9.0</option>

docs/1.6.0/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2>Submodules</h2>
3232
<footer>
3333
<select id="version-selector">
3434
<option value="latest">latest</option>
35+
<option value="2.1.0">2.1.0</option>
3536
<option value="2.0.0">2.0.0</option>
3637
<option value="1.10.2">1.10.2</option>
3738
<option value="1.9.0">1.9.0</option>

docs/1.6.0/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.6.0/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ <h2>API Documentation</h2>
6969
<footer>
7070
<select id="version-selector">
7171
<option value="latest">latest</option>
72+
<option value="2.1.0">2.1.0</option>
7273
<option value="2.0.0">2.0.0</option>
7374
<option value="1.10.2">1.10.2</option>
7475
<option value="1.9.0">1.9.0</option>

docs/1.7.0/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2>Submodules</h2>
3232
<footer>
3333
<select id="version-selector">
3434
<option value="latest">latest</option>
35+
<option value="2.1.0">2.1.0</option>
3536
<option value="2.0.0">2.0.0</option>
3637
<option value="1.10.2">1.10.2</option>
3738
<option value="1.9.0">1.9.0</option>

docs/1.7.0/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.7.0/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ <h2>API Documentation</h2>
8484
<footer>
8585
<select id="version-selector">
8686
<option value="latest">latest</option>
87+
<option value="2.1.0">2.1.0</option>
8788
<option value="2.0.0">2.0.0</option>
8889
<option value="1.10.2">1.10.2</option>
8990
<option value="1.9.0">1.9.0</option>

docs/1.8.1/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2>Submodules</h2>
3232
<footer>
3333
<select id="version-selector">
3434
<option value="latest">latest</option>
35+
<option value="2.1.0">2.1.0</option>
3536
<option value="2.0.0">2.0.0</option>
3637
<option value="1.10.2">1.10.2</option>
3738
<option value="1.9.0">1.9.0</option>

docs/1.8.1/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.8.1/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ <h2>API Documentation</h2>
8484
<footer>
8585
<select id="version-selector">
8686
<option value="latest">latest</option>
87+
<option value="2.1.0">2.1.0</option>
8788
<option value="2.0.0">2.0.0</option>
8889
<option value="1.10.2">1.10.2</option>
8990
<option value="1.9.0">1.9.0</option>

docs/1.9.0/type_enforced.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ <h2>Submodules</h2>
3232
<footer>
3333
<select id="version-selector">
3434
<option value="latest">latest</option>
35+
<option value="2.1.0">2.1.0</option>
3536
<option value="2.0.0">2.0.0</option>
3637
<option value="1.10.2">1.10.2</option>
3738
<option value="1.9.0">1.9.0</option>

docs/1.9.0/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/1.9.0/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ <h2>API Documentation</h2>
8484
<footer>
8585
<select id="version-selector">
8686
<option value="latest">latest</option>
87+
<option value="2.1.0">2.1.0</option>
8788
<option value="2.0.0">2.0.0</option>
8889
<option value="1.10.2">1.10.2</option>
8990
<option value="1.9.0">1.9.0</option>

docs/2.0.0/search.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/2.0.0/type_enforced.html

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ <h2>Submodules</h2>
5454
<footer>
5555
<select id="version-selector">
5656
<option value="latest">latest</option>
57+
<option value="2.1.0">2.1.0</option>
5758
<option value="2.0.0">2.0.0</option>
5859
<option value="1.10.2">1.10.2</option>
5960
<option value="1.9.0">1.9.0</option>
@@ -170,7 +171,7 @@ <h2 id="what-changed-in-200">What changed in 2.0.0?</h2>
170171
<li>Support for python3.10 has been dropped.</li>
171172
<li>List based union types are no longer supported.
172173
<ul>
173-
<li>For example <code>[int, float]</code> is no longer a supported type hint. </li>
174+
<li>For example <code>[int, float]</code> is no longer a supported type hint.</li>
174175
<li>Use <code>int|float</code> or <code>typing.Union[int, float]</code> instead.</li>
175176
</ul></li>
176177
<li>Dict types now require two types to be specified.
@@ -282,12 +283,12 @@ <h2 id="supported-type-checking-features">Supported Type Checking Features:</h2>
282283
</ul></li>
283284
<li>Note: If type is a <code>str | Literal['a', 'b']</code>
284285
<ul>
285-
<li>The check will validate that the type is a string or the value is equal to <code>'a'</code> or <code>'b'</code>. </li>
286+
<li>The check will validate that the type is a string or the value is equal to <code>'a'</code> or <code>'b'</code>.</li>
286287
<li>This means that an input of <code>'c'</code> will pass the check since it matches the string type, but an input of <code>1</code> will fail.</li>
287288
</ul></li>
288289
<li>Note: If type is a <code>int | Literal['a', 'b']</code>
289290
<ul>
290-
<li>The check will validate that the type is an int or the value is equal to <code>'a'</code> or <code>'b'</code>. </li>
291+
<li>The check will validate that the type is an int or the value is equal to <code>'a'</code> or <code>'b'</code>.</li>
291292
<li>This means that an input of <code>'c'</code> will fail the check, but an input of <code>1</code> will pass.</li>
292293
</ul></li>
293294
<li>Note: Literals stack when used with unions.
@@ -658,7 +659,7 @@ <h2 id="running-tests-prettifying-code-and-updating-docs">Running Tests, Prettif
658659
</span><span id="L-48"><a href="#L-48"><span class="linenos"> 48</span></a><span class="sd">The main changes in version 2.0.0 revolve around migrating towards the standard python typing hint process and away from the original type_enfoced type hints (as type enforced was originally created before the `|` operator was added to python).</span>
659660
</span><span id="L-49"><a href="#L-49"><span class="linenos"> 49</span></a><span class="sd">- Support for python3.10 has been dropped.</span>
660661
</span><span id="L-50"><a href="#L-50"><span class="linenos"> 50</span></a><span class="sd">- List based union types are no longer supported.</span>
661-
</span><span id="L-51"><a href="#L-51"><span class="linenos"> 51</span></a><span class="sd"> - For example `[int, float]` is no longer a supported type hint. </span>
662+
</span><span id="L-51"><a href="#L-51"><span class="linenos"> 51</span></a><span class="sd"> - For example `[int, float]` is no longer a supported type hint.</span>
662663
</span><span id="L-52"><a href="#L-52"><span class="linenos"> 52</span></a><span class="sd"> - Use `int|float` or `typing.Union[int, float]` instead.</span>
663664
</span><span id="L-53"><a href="#L-53"><span class="linenos"> 53</span></a><span class="sd">- Dict types now require two types to be specified.</span>
664665
</span><span id="L-54"><a href="#L-54"><span class="linenos"> 54</span></a><span class="sd"> - The first type is the key type and the second type is the value type.</span>
@@ -722,10 +723,10 @@ <h2 id="running-tests-prettifying-code-and-updating-docs">Running Tests, Prettif
722723
</span><span id="L-112"><a href="#L-112"><span class="linenos">112</span></a><span class="sd"> - Note: Multiple types can be passed in the same `Literal` as acceptable values.</span>
723724
</span><span id="L-113"><a href="#L-113"><span class="linenos">113</span></a><span class="sd"> - e.g. Literal[&#39;a&#39;, &#39;b&#39;, 1, 2] will require any passed values that are equal (`==`) to `&#39;a&#39;`, `&#39;b&#39;`, `1` or `2`.</span>
724725
</span><span id="L-114"><a href="#L-114"><span class="linenos">114</span></a><span class="sd"> - Note: If type is a `str | Literal[&#39;a&#39;, &#39;b&#39;]`</span>
725-
</span><span id="L-115"><a href="#L-115"><span class="linenos">115</span></a><span class="sd"> - The check will validate that the type is a string or the value is equal to `&#39;a&#39;` or `&#39;b&#39;`. </span>
726+
</span><span id="L-115"><a href="#L-115"><span class="linenos">115</span></a><span class="sd"> - The check will validate that the type is a string or the value is equal to `&#39;a&#39;` or `&#39;b&#39;`.</span>
726727
</span><span id="L-116"><a href="#L-116"><span class="linenos">116</span></a><span class="sd"> - This means that an input of `&#39;c&#39;` will pass the check since it matches the string type, but an input of `1` will fail.</span>
727728
</span><span id="L-117"><a href="#L-117"><span class="linenos">117</span></a><span class="sd"> - Note: If type is a `int | Literal[&#39;a&#39;, &#39;b&#39;]`</span>
728-
</span><span id="L-118"><a href="#L-118"><span class="linenos">118</span></a><span class="sd"> - The check will validate that the type is an int or the value is equal to `&#39;a&#39;` or `&#39;b&#39;`. </span>
729+
</span><span id="L-118"><a href="#L-118"><span class="linenos">118</span></a><span class="sd"> - The check will validate that the type is an int or the value is equal to `&#39;a&#39;` or `&#39;b&#39;`.</span>
729730
</span><span id="L-119"><a href="#L-119"><span class="linenos">119</span></a><span class="sd"> - This means that an input of `&#39;c&#39;` will fail the check, but an input of `1` will pass.</span>
730731
</span><span id="L-120"><a href="#L-120"><span class="linenos">120</span></a><span class="sd"> - Note: Literals stack when used with unions.</span>
731732
</span><span id="L-121"><a href="#L-121"><span class="linenos">121</span></a><span class="sd"> - e.g. `Literal[&#39;a&#39;, &#39;b&#39;] | Literal[1, 2]` will require any passed values that are equal (`==`) to `&#39;a&#39;`, `&#39;b&#39;`, `1` or `2`.</span>
@@ -990,7 +991,8 @@ <h2 id="running-tests-prettifying-code-and-updating-docs">Running Tests, Prettif
990991
</span><span id="L-380"><a href="#L-380"><span class="linenos">380</span></a>
991992
</span><span id="L-381"><a href="#L-381"><span class="linenos">381</span></a><span class="sd">- Note: You can and should modify the `Dockerfile` to test different python versions.</span>
992993
</span><span id="L-382"><a href="#L-382"><span class="linenos">382</span></a><span class="sd">&quot;&quot;&quot;</span>
993-
</span><span id="L-383"><a href="#L-383"><span class="linenos">383</span></a><span class="kn">from</span><span class="w"> </span><span class="nn">.enforcer</span><span class="w"> </span><span class="kn">import</span> <span class="n">Enforcer</span><span class="p">,</span> <span class="n">FunctionMethodEnforcer</span>
994+
</span><span id="L-383"><a href="#L-383"><span class="linenos">383</span></a>
995+
</span><span id="L-384"><a href="#L-384"><span class="linenos">384</span></a><span class="kn">from</span><span class="w"> </span><span class="nn">.enforcer</span><span class="w"> </span><span class="kn">import</span> <span class="n">Enforcer</span><span class="p">,</span> <span class="n">FunctionMethodEnforcer</span>
994996
</span></pre></div>
995997

996998

docs/2.0.0/type_enforced/enforcer.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>API Documentation</h2>
4848
<footer>
4949
<select id="version-selector">
5050
<option value="latest">latest</option>
51+
<option value="2.1.0">2.1.0</option>
5152
<option value="2.0.0">2.0.0</option>
5253
<option value="1.10.2">1.10.2</option>
5354
<option value="1.9.0">1.9.0</option>

docs/2.0.0/type_enforced/utils.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ <h2>API Documentation</h2>
8484
<footer>
8585
<select id="version-selector">
8686
<option value="latest">latest</option>
87+
<option value="2.1.0">2.1.0</option>
8788
<option value="2.0.0">2.0.0</option>
8889
<option value="1.10.2">1.10.2</option>
8990
<option value="1.9.0">1.9.0</option>

docs/2.1.0/index.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta http-equiv="refresh" content="0; url=./type_enforced.html"/>
6+
</head>
7+
</html>

docs/2.1.0/search.js

Lines changed: 46 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)