diff options
| author | Taku Fukada <naninunenor@gmail.com> | 2020-07-24 03:22:41 +0900 |
|---|---|---|
| committer | Taku Fukada <naninunenor@gmail.com> | 2020-07-24 18:20:03 +0900 |
| commit | 54a342a7f5b74f32c7a53ea483d9046e688b9830 (patch) | |
| tree | cbffe76818a71ffa52a8b7151baed21c0b387c5b /shared-bindings/memorymonitor/__init__.c | |
| parent | 543708416bc19bc1e77d859d013c4757433ad255 (diff) | |
Add and correct some type hints
Diffstat (limited to 'shared-bindings/memorymonitor/__init__.c')
| -rw-r--r-- | shared-bindings/memorymonitor/__init__.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/shared-bindings/memorymonitor/__init__.c b/shared-bindings/memorymonitor/__init__.c index 98f48f525..c101ba5e0 100644 --- a/shared-bindings/memorymonitor/__init__.c +++ b/shared-bindings/memorymonitor/__init__.c @@ -36,10 +36,9 @@ //| """Memory monitoring helpers""" //| -//| class AllocationError: -//| def __init__(self, Exception: Any): -//| """Catchall exception for allocation related errors.""" -//| ... +//| class AllocationError(Exception): +//| """Catchall exception for allocation related errors.""" +//| ... MP_DEFINE_MEMORYMONITOR_EXCEPTION(AllocationError, Exception) NORETURN void mp_raise_memorymonitor_AllocationError(const compressed_string_t* fmt, ...) { |
