-
Notifications
You must be signed in to change notification settings - Fork 1
/
numerary.types.md
111 lines (100 loc) · 3.77 KB
/
numerary.types.md
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!---
Copyright and other protections apply. Please see the accompanying LICENSE file for
rights and restrictions governing use of this software. All rights not expressly
waived or licensed are reserved. If that file is missing or appears to be modified
from its original, then please contact the author before viewing or using this
software in any capacity.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!!!!!!!!!!!!! IMPORTANT: READ THIS BEFORE EDITING! !!!!!!!!!!!!!!!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Please keep each sentence on its own unwrapped line.
It looks like crap in a text editor, but it has no effect on rendering, and it allows much more useful diffs.
Thank you!
-->
# ``#!python numerary.types`` package reference
!!! warning "Experimental"
This package is an attempt to ease compatibility between Python’s numbers and types.
If that sounds like it shouldn’t be a thing, you won’t get any argument out of me.
Anyhoo, this package should be considered experimental.
I am working toward stability as quickly as possible, but be warned that future release may introduce incompatibilities or remove this package altogether.
[Feedback, suggestions, and contributions](contrib.md) are desperately appreciated.
``numerary`` has donated its core caching protocol implementation to (and now depends on) ``beartype``.
``beartype`` is *awesome*, and its author is even *awesomer*.[^1]
[^1]:
I acknowledge that the subject of who is awesomer, beartype or the man who made it, is [hotly contested](https://github.com/beartype/beartype/issues/66#issuecomment-960495976).
::: numerary._protocol.CachingProtocolMeta
rendering:
show_if_no_docstring: false
show_root_heading: true
::: numerary.types
rendering:
show_if_no_docstring: false
show_root_heading: false
show_root_toc_entry: false
selection:
members:
- "RationalLike"
- "RationalLikeMethods"
- "SupportsAbs"
- "SupportsComplex"
- "SupportsFloat"
- "SupportsInt"
- "SupportsIndex"
- "SupportsRound"
- "SupportsConjugate"
- "SupportsRealImag"
- "SupportsRealImagAsMethod"
- "SupportsTrunc"
- "SupportsFloorCeil"
- "SupportsDivmod"
- "SupportsNumeratorDenominator"
- "SupportsNumeratorDenominatorMethods"
- "SupportsComplexOps"
- "SupportsComplexPow"
- "SupportsRealOps"
- "SupportsIntegralOps"
- "SupportsIntegralPow"
- "Protocol"
- "real"
- "imag"
- "__pow__"
- "__trunc__"
- "__floor__"
- "__ceil__"
- "numerator"
- "denominator"
<!---
See <https://github.com/mkdocstrings/mkdocstrings/issues/333>
-->
::: numerary.types
rendering:
show_if_no_docstring: true
show_root_heading: false
show_root_toc_entry: false
selection:
members:
- "RationalLikeMixedT"
- "RationalLikeMixedU"
- "_SupportsAbs"
- "_SupportsComplex"
- "_SupportsFloat"
- "_SupportsInt"
- "_SupportsIndex"
- "_SupportsRound"
- "_SupportsConjugate"
- "_SupportsRealImag"
- "_SupportsRealImagAsMethod"
- "SupportsRealImagMixedT"
- "SupportsRealImagMixedU"
- "_SupportsTrunc"
- "_SupportsFloorCeil"
- "_SupportsDivmod"
- "_SupportsNumeratorDenominator"
- "_SupportsNumeratorDenominatorMethods"
- "SupportsNumeratorDenominatorMixedT"
- "SupportsNumeratorDenominatorMixedU"
- "_SupportsComplexOps"
- "_SupportsComplexPow"
- "_SupportsRealOps"
- "_SupportsIntegralOps"
- "_SupportsIntegralPow"