We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ff6dc26 commit fec9633Copy full SHA for fec9633
taskiq/labels.py
@@ -18,7 +18,7 @@ class LabelType(enum.IntEnum):
18
LabelType.INT: int,
19
LabelType.STR: str,
20
LabelType.FLOAT: float,
21
- LabelType.BOOL: lambda x: x.lower() == "true",
+ LabelType.BOOL: lambda x: str(x).lower() == "true",
22
LabelType.BYTES: base64.b64decode,
23
LabelType.ANY: lambda x: x,
24
}
0 commit comments