mirror of
				https://github.com/dgtlmoon/changedetection.io.git
				synced 2025-11-04 08:34:57 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
		
			280 B
		
	
	
	
		
			Python
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
		
			280 B
		
	
	
	
		
			Python
		
	
	
	
	
	
from dataclasses import dataclass, field
 | 
						|
from typing import Any
 | 
						|
 | 
						|
# So that we can queue some metadata in `item`
 | 
						|
# https://docs.python.org/3/library/queue.html#queue.PriorityQueue
 | 
						|
#
 | 
						|
@dataclass(order=True)
 | 
						|
class PrioritizedItem:
 | 
						|
    priority: int
 | 
						|
    item: Any=field(compare=False)
 |