You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
	
	
		
			
				
					
						
						
							| 1234567891011 | 
							- import json
 - 
 - from pydantic import BaseModel
 - 
 - 
 - class PydanticModelEncoder(json.JSONEncoder):
 -     def default(self, o):
 -         if isinstance(o, BaseModel):
 -             return o.model_dump()
 -         else:
 -             super().default(o)
 
 
  |