summaryrefslogtreecommitdiff
path: root/shared-bindings/memorymonitor/AllocationAlarm.c
diff options
context:
space:
mode:
authorTaku Fukada <naninunenor@gmail.com>2020-07-24 03:22:41 +0900
committerTaku Fukada <naninunenor@gmail.com>2020-07-24 18:20:03 +0900
commit54a342a7f5b74f32c7a53ea483d9046e688b9830 (patch)
treecbffe76818a71ffa52a8b7151baed21c0b387c5b /shared-bindings/memorymonitor/AllocationAlarm.c
parent543708416bc19bc1e77d859d013c4757433ad255 (diff)
Add and correct some type hints
Diffstat (limited to 'shared-bindings/memorymonitor/AllocationAlarm.c')
-rw-r--r--shared-bindings/memorymonitor/AllocationAlarm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/shared-bindings/memorymonitor/AllocationAlarm.c b/shared-bindings/memorymonitor/AllocationAlarm.c
index 36e2cb5b2..7de8c1287 100644
--- a/shared-bindings/memorymonitor/AllocationAlarm.c
+++ b/shared-bindings/memorymonitor/AllocationAlarm.c
@@ -35,7 +35,7 @@
//| class AllocationAlarm:
//|
-//| def __init__(self, *, minimum_block_count=1):
+//| def __init__(self, *, minimum_block_count: int = 1) -> None:
//| """Throw an exception when an allocation of ``minimum_block_count`` or more blocks
//| occurs while active.
//|
@@ -76,7 +76,7 @@ STATIC mp_obj_t memorymonitor_allocationalarm_make_new(const mp_obj_type_t *type
return MP_OBJ_FROM_PTR(self);
}
-//| def ignore(self, count) -> AllocationAlarm:
+//| def ignore(self, count: int) -> AllocationAlarm:
//| """Sets the number of applicable allocations to ignore before raising the exception.
//| Automatically set back to zero at context exit.
//|
@@ -98,7 +98,7 @@ STATIC mp_obj_t memorymonitor_allocationalarm_obj_ignore(mp_obj_t self_in, mp_ob
}
MP_DEFINE_CONST_FUN_OBJ_2(memorymonitor_allocationalarm_ignore_obj, memorymonitor_allocationalarm_obj_ignore);
-//| def __enter__(self) -> memorymonitor.AllocationAlarm:
+//| def __enter__(self) -> AllocationAlarm:
//| """Enables the alarm."""
//| ...
//|