# This is the whole point of this module.# ruff: noqa: A001"""Aliases for various Solidity types."""from._abi_typesimportAddressType,Bool,Bytes,Int,String,Struct,Type,UInt_PyInt=int
[docs]defuint(bits:_PyInt)->UInt:"""Returns the ``uint<bits>`` type."""returnUInt(bits)
[docs]defint(bits:_PyInt)->Int:"""Returns the ``int<bits>`` type."""returnInt(bits)
[docs]defbytes(size:None|_PyInt=None)->Bytes:"""Returns the ``bytes<size>`` type, or ``bytes`` if ``size`` is ``None``."""returnBytes(size)
[docs]defstruct(**kwargs:Type)->Struct:"""Returns the structure type with given fields."""returnStruct(kwargs)