Override a dictionary which is not in class not whitelist function or not a def function

Hello Everyone.
I need to override the dictionary in india compliance app e_waybill file in this file not a any class, not a function or not a whitelist function.

Please guide me on this topic.

You can do monkey patching.

What is the use case? If there is something useful for others, this could form part of core and we may help you implement it.

Thank you for your response.

My use case involves creating an e-way bill using a custom doctype. To achieve this, I pass the name of my custom doctype into the code where necessary. Additionally, I am using the Indian Compliance module, so I call the appropriate function to create the e-way bill.

To integrate this functionality, I added my custom doctype name to the required list in the code. This resolved my use case.

I ultimately solved this issue by using a monkey patch.