I have a static dictionary that I want to use in multiple scripts via import. I cannot come up with the proper syntax in my import file. Can someone tell me what the correct syntax is? TIA
@dataclass
class fanPoints:
fanPoints:dict={20.:1,10.:.5,5.:.1,0.:.02}
This produces the error:
ValueError: mutable default <class ‘dict’> for field fanPoints is not allowed: use default_factory
Looking up default_factory I cannot find anything helpful.