Changin behaviour of constants defined in a module

Let’s say I have a file in which I define my enums and other constants
I want it to send it to fontend
but only relevant ones

for say one = 1 its. a int but constant
but I want something such that when I do one.required returns true and type(one) still remains int wrapping up with any custom managed class

Welcome to the community Sourav!

To achieve what you are trying to do, you can create a custom class in Python that wraps your constant values and adds the necessary properties (like required). This way, the type of the constant remains as an integer, but you have additional properties attached to it.