File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 1111from pydantic import BaseModel , BaseSettings , Extra , validator
1212
1313
14- class MachineConfig (BaseModel , extra = Extra . allow ): # type: ignore
14+ class MachineConfig (BaseModel ): # type: ignore
1515 """
1616 Keys that describe the type of workflow conducted on the client side, and how
1717 Murfey will handle its data transfer and processing
@@ -92,6 +92,16 @@ class MachineConfig(BaseModel, extra=Extra.allow): # type: ignore
9292 node_creator_queue : str = "node_creator"
9393 notifications_queue : str = "pato_notification"
9494
95+ class Config :
96+ """
97+ Inner class that defines this model's parsing and serialising behaviour
98+ """
99+
100+ extra = Extra .allow
101+ json_encoders = {
102+ Path : str ,
103+ }
104+
95105
96106def from_file (config_file_path : Path , instrument : str = "" ) -> dict [str , MachineConfig ]:
97107 with open (config_file_path , "r" ) as config_stream :
You can’t perform that action at this time.
0 commit comments