fix espidf docs

This commit is contained in:
microDev 2021-09-16 20:03:04 +05:30
parent 87dc84af3c
commit be3fca81e7
No known key found for this signature in database
GPG Key ID: 2C0867BE60967730
2 changed files with 6 additions and 5 deletions

View File

@ -269,7 +269,7 @@ stubs:
.PHONY: check-stubs
check-stubs: stubs
@(cd $(STUBDIR) && set -- */__init__.pyi && mypy --strict "$${@%/*}")
@(cd $(STUBDIR) && set -- */__init__.pyi && mypy "$${@%/*}")
@tools/test-stubs.sh
update-frozen-libraries:

View File

@ -110,10 +110,11 @@ const mp_obj_type_t mp_type_espidf_IDFError = {
};
// class MemoryError(MemoryError):
// """Raised when an ESP IDF memory allocation fails."""
// ...
//
//| import builtins
//| class MemoryError(builtins.MemoryError):
//| """Raised when an ESP IDF memory allocation fails."""
//| ...
//|
NORETURN void mp_raise_espidf_MemoryError(void) {
nlr_raise(mp_obj_new_exception(&mp_type_espidf_MemoryError));
}