from enum import StrEnum, _simple_enum
from functools import cmp_to_key
from dataclasses import dataclass
-from typing import Dict
__all__ = ["Stats", "SortKey", "FunctionProfile", "StatsProfile"]
class StatsProfile:
'''Class for keeping track of an item in inventory.'''
total_tt: float
- func_profiles: Dict[str, FunctionProfile]
+ func_profiles: dict[str, FunctionProfile]
class Stats:
"""This class is used for creating reports from data generated by the
import sys
import threading
import time
-from typing import Self
try:
import zlib # We may need its compression method
return zinfo
- def _for_archive(self, archive: ZipFile) -> Self:
+ def _for_archive(self, archive):
"""Resolve suitable defaults from the archive.
Resolve the date_time, compression attributes, and external attributes