core_function_argcount.py 293 B

12345678910
  1. """
  2. categories: Core,Functions
  3. description: Error messages for methods may display unexpected argument counts
  4. cause: MicroPython counts "self" as an argument.
  5. workaround: Interpret error messages with the information above in mind.
  6. """
  7. try:
  8. [].append()
  9. except Exception as e:
  10. print(e)