Skip to content

Commit

Permalink
Fixup Any type not any keyword
Browse files Browse the repository at this point in the history
  • Loading branch information
asmacdo committed Jun 21, 2024
1 parent 435ced5 commit a5c1c99
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/duct/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
from dataclasses import asdict, dataclass, field
from datetime import datetime
from enum import Enum
from functools import cached_property
import json
import os
import shutil
Expand Down Expand Up @@ -333,8 +334,8 @@ def print_max_values(self) -> None:
for pid, maxes in self.max_values.stats.items():
print(f"PID {pid} Maximum Values: {asdict(maxes)}")

@property
def execution_summary(self) -> dict[str, any]:
@cached_property
def execution_summary(self) -> dict[str, Any]:
return {
"exit_code": self.process.returncode,
"command": self.command,
Expand Down

0 comments on commit a5c1c99

Please sign in to comment.