Skip to content

Commit

Permalink
Use Optional instead of | for py38
Browse files Browse the repository at this point in the history
  • Loading branch information
yngve-sk committed Dec 11, 2024
1 parent 129bdfa commit cdc3eb1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import time
from dataclasses import dataclass
from textwrap import dedent
from typing import List
from typing import List, Optional

import memray
import numpy as np
Expand Down Expand Up @@ -230,8 +230,8 @@ def __str__(self) -> str:
class _ExpectedPerformance:
memory_limit_mb: float
time_limit_s: float
last_measured_memory_mb: float | None = None # For bookkeeping
last_measured_time: float | None = None # For bookkeeping
last_measured_memory_mb: Optional[float] = None # For bookkeeping
last_measured_time: Optional[float] = None # For bookkeeping


@dataclass
Expand Down

0 comments on commit cdc3eb1

Please sign in to comment.