8 lines
168 B
Python
8 lines
168 B
Python
![]() |
from dataclasses import dataclass, field
|
||
|
from typing import Any
|
||
|
|
||
|
|
||
|
@dataclass(order=True)
|
||
|
class PrioritizedItem:
|
||
|
priority: float
|
||
|
item: Any = field(compare=False)
|