Update `serial/tools/list_ports.py` syntax

This introduces the following changes:

* Add type annotations.

  This has been run cursorily through mypy,
  and reported issues have been resolved.
  However, type annotations are not guaranteed to be correct yet.

* Run the code through pyupgrade/isort.

  Based on past feedback, the code is not run through black/ruff
  because these will convert quotation marks.
1 file changed