numerary.types
package reference
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 are desperately appreciated.
RationalLike
Bases: SupportsAbs[_T_co]
, SupportsFloat
, SupportsNumeratorDenominator
, SupportsRealOps[_T_co]
, SupportsComplexOps[_T_co]
, SupportsComplexPow
, Protocol
, Generic[_T_co]
A caching ABC that defines a core set of operations for interacting with rationals. It is a composition of:
SupportsAbs
SupportsFloat
SupportsNumeratorDenominator
SupportsRealOps
SupportsComplexOps
SupportsComplexPow
- a
__hash__
method
Basically:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
This is intended as a practically useful, but incomplete list. To enforce
equivalence to numbers.Rational
, one would also need:
SupportsComplex
SupportsConjugate
SupportsRealImag
SupportsRound
SupportsTrunc
SupportsFloorCeil
SupportsDivmod
Source code in numerary/types.py
1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 |
|
RationalLikeMethods
Bases: SupportsAbs[_T_co]
, SupportsFloat
, SupportsNumeratorDenominatorMethods
, SupportsRealOps[_T_co]
, SupportsComplexOps[_T_co]
, SupportsComplexPow
, Protocol
, Generic[_T_co]
A caching ABC that defines a core set of operations for interacting with rationals.
It is identical to RationalLike
with one
important exception. Instead of
SupportsNumeratorDenominator
,
this protocol provides
SupportsNumeratorDenominatorMethods
.
Basically:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 |
|
This is probably not very useful on its own, but is important to the construction of
RationalLikeMixedU
and
RationalLikeMixedT
.
See also the numerator
and
denominator
helper functions.
Source code in numerary/types.py
1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 |
|
SupportsAbs
Bases: _SupportsAbs[_T_co]
, Protocol
, Generic[_T_co]
A derivative of beartype.typing.SupportsAbs
with an override-able cache.
Source code in numerary/types.py
67 68 69 70 71 72 73 74 75 76 |
|
SupportsComplex
Bases: _SupportsComplex
, Protocol
A derivative of beartype.typing.SupportsComplex
with an override-able cache.
Source code in numerary/types.py
82 83 84 85 86 87 88 89 90 |
|
SupportsFloat
Bases: _SupportsFloat
, Protocol
A derivative of beartype.typing.SupportsFloat
with an override-able cache.
Source code in numerary/types.py
96 97 98 99 100 101 102 103 104 |
|
SupportsInt
Bases: _SupportsInt
, Protocol
A derivative of beartype.typing.SupportsInt
with an override-able cache.
Source code in numerary/types.py
110 111 112 113 114 115 116 117 118 |
|
SupportsIndex
Bases: _SupportsIndex
, Protocol
A derivative of beartype.typing.SupportsIndex
with an override-able cache.
Source code in numerary/types.py
124 125 126 127 128 129 130 131 132 |
|
SupportsRound
Bases: _SupportsRound[_T_co]
, Protocol
, Generic[_T_co]
A derivative of beartype.typing.SupportsRound
with an override-able cache.
Source code in numerary/types.py
138 139 140 141 142 143 144 145 146 147 |
|
SupportsConjugate
Bases: _SupportsConjugate
, Protocol
A caching ABC defining the conjugate
method.
(_SupportsConjugate
is the raw, non-caching
version that defines the actual methods.)
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 |
|
Source code in numerary/types.py
165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 |
|
SupportsRealImag
Bases: _SupportsRealImag
, Protocol
A caching ABC defining the
real
and
imag
properties.
(_SupportsRealImag
is
the raw, non-caching version that defines the actual methods.)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
|
Source code in numerary/types.py
230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 |
|
SupportsRealImagAsMethod
Bases: _SupportsRealImagAsMethod
, Protocol
A caching ABC defining the as_real_imag
method that returns a 2-tuple.
(_SupportsRealImagAsMethod
is the raw, non-caching version that defines the actual methods.)
See also the real
and imag
helper functions.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
|
Source code in numerary/types.py
286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 |
|
SupportsTrunc
Bases: _SupportsTrunc
, Protocol
A caching ABC defining the __trunc__
method.
See also the __trunc__
helper function.
(_SupportsTrunc
is the raw, non-caching version
that defines the actual methods.)
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 |
|
Source code in numerary/types.py
354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 |
|
SupportsFloorCeil
Bases: _SupportsFloorCeil
, Protocol
A caching ABC defining the
__floor__
.
and
__ceil__
methods.
(_SupportsFloorCeil
is the raw, non-caching
version that defines the actual methods.)
Note
This is of limited value for Python versions prior to 3.9, since float.__floor__
and float.__ceil__
were not defined. If support
for those environments is important, consider using
SupportsFloat
instead.
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 |
|
Source code in numerary/types.py
420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 |
|
SupportsDivmod
Bases: _SupportsDivmod[_T_co]
, Protocol
, Generic[_T_co]
A caching ABC defining the
__divmod__
and
__rdivmod__
methods. Each returns a 2-tuple of covariants.
(_SupportsDivmod
is the raw, non-caching
version that defines the actual methods.)
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 |
|
Source code in numerary/types.py
505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 |
|
SupportsNumeratorDenominator
Bases: _SupportsNumeratorDenominator
, Protocol
A caching ABC defining the
numerator
and
denominator
properties.
(_SupportsNumeratorDenominator
is the raw, non-caching version that defines the actual properties.)
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 |
|
Source code in numerary/types.py
575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 |
|
SupportsNumeratorDenominatorMethods
Bases: _SupportsNumeratorDenominatorMethods
, Protocol
A caching ABC defining numerator
and denominator
methods.
Each returns a SupportsInt
.
(_SupportsNumeratorDenominatorMethods
is the raw, non-caching version that defines the actual methods.)
See also the numerator
and
denominator
helper functions.
Source code in numerary/types.py
642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 |
|
SupportsComplexOps
Bases: _SupportsComplexOps[_T_co]
, Protocol
, Generic[_T_co]
A caching ABC defining the Complex
operator
methods with
covariant return values.
(_SupportsComplexOps
is the raw,
non-caching version that defines the actual methods.)
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 |
|
Source code in numerary/types.py
729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 |
|
SupportsComplexPow
Bases: _SupportsComplexPow
, Protocol
A caching ABC defining the Complex
(i.e., non-modulo) versions of the
__pow__
and
__rpow__
.
(_SupportsComplexPow
is the raw,
non-caching version that defines the actual methods.)
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 |
|
Source code in numerary/types.py
795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 |
|
SupportsRealOps
Bases: _SupportsRealOps[_T_co]
, Protocol
, Generic[_T_co]
A caching ABC defining the Real
operator
methods with covariant
return values.
(_SupportsRealOps
is the raw, non-caching
version that defines the actual methods.)
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 |
|
Source code in numerary/types.py
886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 |
|
SupportsIntegralOps
Bases: _SupportsIntegralOps[_T_co]
, Protocol
, Generic[_T_co]
A caching ABC defining the Integral
operator
methods with
covariant return values.
(_SupportsIntegralOps
is the raw,
non-caching version that defines the actual methods.)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Source code in numerary/types.py
993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 |
|
SupportsIntegralPow
Bases: _SupportsIntegralPow
, Protocol
A caching ABC defining the Integral
(i.e., modulo) versions of the
__pow__
and
__rpow__
methods.
(_SupportsIntegralPow
is the raw,
non-caching version that defines the actual methods.)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Source code in numerary/types.py
1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 |
|
real(operand: SupportsRealImagMixedU)
Helper function that extracts the real part from operand including resolving
non-compliant implementations that implement such extraction via a as_real_imag
method rather than as properties.
1 2 3 4 |
|
See SupportsRealImag and SupportsRealImagAsMethod.
Source code in numerary/types.py
1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 |
|
imag(operand: SupportsRealImagMixedU)
Helper function that extracts the imaginary part from operand including resolving
non-compliant implementations that implement such extraction via a as_real_imag
method rather than as properties.
1 2 3 4 |
|
See SupportsRealImag and SupportsRealImagAsMethod.
Source code in numerary/types.py
1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 |
|
__pow__(arg: Union[SupportsComplexPow, SupportsIntegralPow], exponent: Any, modulus: Optional[Any] = None) -> Any
Helper function that wraps pow
to work with
SupportsComplexPow
,
SupportsIntegralPow
.
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 |
|
Source code in numerary/types.py
1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 |
|
__trunc__(operand: Union[SupportsFloat, SupportsTrunc])
Helper function that wraps math.trunc
.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Source code in numerary/types.py
1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 |
|
__floor__(operand: Union[SupportsFloat, SupportsFloorCeil])
Helper function that wraps math.floor
.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Source code in numerary/types.py
1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 |
|
__ceil__(operand: Union[SupportsFloat, SupportsFloorCeil])
Helper function that wraps math.ceil
.
1 2 3 4 5 6 7 8 9 10 11 12 |
|
Source code in numerary/types.py
1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 |
|
numerator(operand: SupportsNumeratorDenominatorMixedU)
Helper function that extracts the numerator from operand including resolving
non-compliant rational implementations that implement numerator
as a method
rather than a property.
1 2 3 4 |
|
See SupportsNumeratorDenominator and SupportsNumeratorDenominatorMethods.
Source code in numerary/types.py
1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 |
|
denominator(operand: SupportsNumeratorDenominatorMixedU)
Helper function that extracts the denominator from operand including resolving
non-compliant rational implementations that implement denominator
as a method
rather than a property.
1 2 3 4 |
|
See SupportsNumeratorDenominator and SupportsNumeratorDenominatorMethods.
Source code in numerary/types.py
1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 |
|
RationalLikeMixedT = (RationalLike, RationalLikeMethods)
module-attribute
RationalLikeMixedU = Union[RationalLike, RationalLikeMethods]
module-attribute
SupportsRealImagMixedT = (SupportsRealImag, SupportsRealImagAsMethod)
module-attribute
SupportsRealImagMixedU = Union[SupportsRealImag, SupportsRealImagAsMethod]
module-attribute
SupportsNumeratorDenominatorMixedT = (SupportsNumeratorDenominator, SupportsNumeratorDenominatorMethods)
module-attribute
SupportsNumeratorDenominatorMixedU = Union[SupportsNumeratorDenominator, SupportsNumeratorDenominatorMethods]
module-attribute
_SupportsConjugate
Bases: _Protocol
The non-caching version of
SupportsConjugate
.
Source code in numerary/types.py
153 154 155 156 157 158 159 160 161 162 |
|
conjugate() -> Any
abstractmethod
Source code in numerary/types.py
160 161 162 |
|
_SupportsRealImag
Bases: _Protocol
The non-caching version of SupportsRealImag
.
Source code in numerary/types.py
215 216 217 218 219 220 221 222 223 224 225 226 227 |
|
imag() -> Any
Source code in numerary/types.py
225 226 227 |
|
real() -> Any
Source code in numerary/types.py
221 222 223 |
|
_SupportsRealImagAsMethod
Bases: _Protocol
The non-caching version of
SupportsRealImagAsMethod
.
Source code in numerary/types.py
274 275 276 277 278 279 280 281 282 283 |
|
as_real_imag() -> Tuple[Any, Any]
abstractmethod
Source code in numerary/types.py
281 282 283 |
|
_SupportsTrunc
Bases: _Protocol
The non-caching version of SupportsTrunc
.
Source code in numerary/types.py
343 344 345 346 347 348 349 350 351 |
|
__trunc__() -> int
abstractmethod
Source code in numerary/types.py
349 350 351 |
|
_SupportsFloorCeil
Bases: _Protocol
The non-caching version of
SupportsFloorCeil
.
Source code in numerary/types.py
404 405 406 407 408 409 410 411 412 413 414 415 416 417 |
|
__ceil__() -> int
abstractmethod
Source code in numerary/types.py
415 416 417 |
|
__floor__() -> int
abstractmethod
Source code in numerary/types.py
411 412 413 |
|
_SupportsDivmod
Bases: _Protocol
, Generic[_T_co]
The non-caching version of SupportsDivmod
.
Source code in numerary/types.py
487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 |
|
__divmod__(other: Any) -> Tuple[_T_co, _T_co]
abstractmethod
Source code in numerary/types.py
496 497 498 |
|
__rdivmod__(other: Any) -> Tuple[_T_co, _T_co]
abstractmethod
Source code in numerary/types.py
500 501 502 |
|
_SupportsNumeratorDenominator
Bases: _Protocol
The non-caching version of
SupportsNumeratorDenominator
.
Source code in numerary/types.py
559 560 561 562 563 564 565 566 567 568 569 570 571 572 |
|
denominator() -> int
Source code in numerary/types.py
570 571 572 |
|
numerator() -> int
Source code in numerary/types.py
566 567 568 |
|
_SupportsNumeratorDenominatorMethods
Bases: _Protocol
The non-caching version of
SupportsNumeratorDenominatorMethods
.
Source code in numerary/types.py
626 627 628 629 630 631 632 633 634 635 636 637 638 639 |
|
denominator() -> SupportsInt
abstractmethod
Source code in numerary/types.py
637 638 639 |
|
numerator() -> SupportsInt
abstractmethod
Source code in numerary/types.py
633 634 635 |
|
_SupportsComplexOps
Bases: _Protocol
, Generic[_T_co]
The non-caching version of
SupportsComplexOps
.
Source code in numerary/types.py
678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 |
|
__add__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
688 689 690 |
|
__mul__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
704 705 706 |
|
__neg__() -> _T_co
abstractmethod
Source code in numerary/types.py
720 721 722 |
|
__pos__() -> _T_co
abstractmethod
Source code in numerary/types.py
724 725 726 |
|
__radd__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
692 693 694 |
|
__rmul__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
708 709 710 |
|
__rsub__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
700 701 702 |
|
__rtruediv__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
716 717 718 |
|
__sub__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
696 697 698 |
|
__truediv__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
712 713 714 |
|
_SupportsComplexPow
Bases: _Protocol
The non-caching version of
SupportsComplexPow
.
Source code in numerary/types.py
779 780 781 782 783 784 785 786 787 788 789 790 791 792 |
|
__pow__(exponent: Any) -> Any
abstractmethod
Source code in numerary/types.py
786 787 788 |
|
__rpow__(exponent: Any) -> Any
abstractmethod
Source code in numerary/types.py
790 791 792 |
|
_SupportsRealOps
Bases: _Protocol
, Generic[_T_co]
The non-caching version of SupportsRealOps
.
Source code in numerary/types.py
844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 |
|
__floordiv__(other: Any) -> Any
abstractmethod
Source code in numerary/types.py
869 870 871 |
|
__ge__(other: Any) -> bool
abstractmethod
Source code in numerary/types.py
861 862 863 |
|
__gt__(other: Any) -> bool
abstractmethod
Source code in numerary/types.py
865 866 867 |
|
__le__(other: Any) -> bool
abstractmethod
Source code in numerary/types.py
857 858 859 |
|
__lt__(other: Any) -> bool
abstractmethod
Source code in numerary/types.py
853 854 855 |
|
__mod__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
877 878 879 |
|
__rfloordiv__(other: Any) -> Any
abstractmethod
Source code in numerary/types.py
873 874 875 |
|
__rmod__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
881 882 883 |
|
_SupportsIntegralOps
Bases: _Protocol
, Generic[_T_co]
The non-caching version of
SupportsIntegralOps
.
Source code in numerary/types.py
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 |
|
__and__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
964 965 966 |
|
__invert__() -> _T_co
abstractmethod
Source code in numerary/types.py
988 989 990 |
|
__lshift__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
948 949 950 |
|
__or__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
980 981 982 |
|
__rand__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
968 969 970 |
|
__rlshift__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
952 953 954 |
|
__ror__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
984 985 986 |
|
__rrshift__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
960 961 962 |
|
__rshift__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
956 957 958 |
|
__rxor__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
976 977 978 |
|
__xor__(other: Any) -> _T_co
abstractmethod
Source code in numerary/types.py
972 973 974 |
|
_SupportsIntegralPow
Bases: _Protocol
The non-caching version of
SupportsIntegralPow
.
Source code in numerary/types.py
1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 |
|
__pow__(exponent: Any, modulus: Optional[Any] = None) -> Any
abstractmethod
Source code in numerary/types.py
1046 1047 1048 |
|
__rpow__(exponent: Any, modulus: Optional[Any] = None) -> Any
abstractmethod
Source code in numerary/types.py
1050 1051 1052 |
|