Skip to content

Commit

Permalink
fix python 3.8 compat
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonLydike committed Oct 2, 2023
1 parent 53ed47d commit a53fb53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion riscemu/core/rtclock.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
from time import time
from typing import Optional

from . import UInt32

Expand All @@ -12,7 +13,7 @@ class RTClock:
tickrate: int
t0: float

def __init__(self, tickrate: int, t0: float | None = None):
def __init__(self, tickrate: int, t0: Optional[float] = None):
if t0 is None:
self.t0 = time()
self.tickrate = tickrate
Expand Down

0 comments on commit a53fb53

Please sign in to comment.