Skip to content

Commit

Permalink
fix: Add type ignores where we're adding functions to standard modules.
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewjw committed Nov 30, 2023
1 parent e7bbf2b commit 0cd869e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions i75/emulated/machine.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,18 @@

import mp_time

time.sleep_ms = mp_time.sleep_ms
time.sleep_ms = mp_time.sleep_ms # type: ignore[attr-defined]


def print_exception(e: Exception, file=sys.stdout) -> None:
traceback.print_exception(e, file=file)


sys.print_exception = print_exception
sys.print_exception = print_exception # type: ignore[attr-defined]


def mem_free() -> int:
return 120000


gc.mem_free = mem_free
gc.mem_free = mem_free # type: ignore[attr-defined]

0 comments on commit 0cd869e

Please sign in to comment.