��g�, c s� � O o OOFEoEo + OLo O OXO5 o O OX1 oXM X1 O O
X1 o X M X
1 O OX 1 o O
OX1 oXM X
1 d)z~Abstract Base Classes (ABCs) for numbers, according to PEP 3141.
TODO: Fill out more detailed documentation on the operators.� )�ABCMeta�abstractmethod)�Number�Complex�Real�Rational�Integralc s � X oO oOoOoOoOoOod)r i% z�All numbers inherit from this class.
If you just want to check if an argument x is a number, without
caring what kind, use isinstance(x, Number).
� N)�__name__�
__module__�__qualname__�__firstlineno__�__doc__� __slots__Z__hash__�__static_attributes__r � � /usr/lib64/python3.14/numbers.pyr r % s � ��
�I� �Hr r )Z metaclassc sL [ � X oO oOo j OoOoXO 1 oO oX XO 1 1 o
X XO 1 1 oXO 1 oXO 1 o
XO
1 oXO 1 oO oO
oXO 1 oXO 1 oXO 1 oXO 1 oXO 1 oXO 1 oXO 1 oXO 1 oXO 1 oOoQ od)r i9 aN Complex defines the operations that work on the builtin complex type.
In short, those are: a conversion to complex, .real, .imag, +, -,
*, /, **, abs(), .conjugate, ==, and !=.
If it is given heterogeneous arguments, and doesn't have special
knowledge about them, it should fall back to the builtin complex
type as described below.
r c � � d)z<Return a builtin complex instance. Called for complex(self).Nr ��self� r �__complex__ZComplex.__complex__F s � r c s � Q O6g ! )z)True if self != 0. Called for bool(self).r r r r r �__bool__ZComplex.__bool__J s � ��q�y�r c � � W b)zHRetrieve the real component of this number.
This should subclass Real.
�ZNotImplementedErrorr r r �realZComplex.realN �
� � "�!r c r )zMRetrieve the imaginary component of this number.
This should subclass Real.
r r r r �imagZComplex.imagW r r c r )zself + otherr �r Zother� r �__add__ZComplex.__add__` �
� � "�!r c r )zother + selfr r r r �__radd__ZComplex.__radd__e r r c r )z-selfr r r r �__neg__ZComplex.__neg__j r r c r )z+selfr r r r �__pos__ZComplex.__pos__o r r c s � T'