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 2922cfb commit c87bbcbCopy full SHA for c87bbcb
slurm_usage.py
@@ -43,6 +43,8 @@
43
from rich.table import Table
44
45
UTC = timezone.utc
46
+# Preserve the original datetime class for type mapping even when patched in tests
47
+_DATETIME_TYPE = datetime
48
49
app = typer.Typer(help="SLURM Job Monitor - Collect and analyze job efficiency metrics")
50
console = Console()
@@ -682,7 +684,7 @@ def get_polars_schema(cls) -> dict[str, pl.DataType]:
682
684
float: pl.Float64,
683
685
bool: pl.Boolean,
686
# All datetime fields should be UTC
- datetime: pl.Datetime("us", "UTC"),
687
+ _DATETIME_TYPE: pl.Datetime("us", "UTC"),
688
}
689
690
schema = {}
0 commit comments