When writing Python code, include type hints where appropriate and maintain compliance with PEP-8 guidelines:
- Provide docstrings for classes and functions.
- Specify an encoding when opening documents. E.g., `open(file_path, encoding="utf-8")`.