Coverage for src / ethereum_types / __init__.py: 100%

1 statements  

« prev     ^ index     » next       coverage.py v7.14.0, created at 2026-06-08 11:02 -0400

1""" 

2Integer and array types which are used by—but not unique to—Ethereum. 

3 

4[`Uint`] represents non-negative integers of arbitrary size, while subclasses 

5of [`FixedUnsigned`] (like [`U256`] or [`U32`]) represent non-negative integers 

6of particular sizes. 

7 

8Similarly, [`Bytes`] represents arbitrarily long byte sequences, while 

9subclasses of [`FixedBytes`] (like [`Bytes0`] or [`Bytes64`]) represent 

10sequences containing an exact number of bytes. 

11 

12Finally, [`UintEnum`] is the [`Uint`] equivalent of [`IntEnum`]. 

13 

14[`Uint`]: ref:ethereum_types.numeric.Uint 

15[`FixedUnsigned`]: ref:ethereum_types.numeric.FixedUnsigned 

16[`U32`]: ref:ethereum_types.numeric.U32 

17[`U256`]: ref:ethereum_types.numeric.U256 

18[`Bytes`]: ref:ethereum_types.bytes.Bytes 

19[`FixedBytes`]: ref:ethereum_types.bytes.FixedBytes 

20[`Bytes0`]: ref:ethereum_types.bytes.Bytes0 

21[`Bytes64`]: ref:ethereum_types.bytes.Bytes64 

22[`UintEnum`]: ref:ethereum_types.enum.UintEnum 

23[`IntEnum`]: https://docs.python.org/3/library/enum.html#enum.IntEnum 

24""" 

25 

26__version__ = "0.4.0"