joouha / euporie

Jupyter notebooks in the terminal
https://euporie.readthedocs.io
MIT License
1.54k stars 36 forks source link

Optimize document_cli_flags.py working on issue #81 #103

Open YashRL opened 3 months ago

YashRL commented 3 months ago
  1. Removed Future Import: Removed the from __future__ import annotations import, as it's unnecessary in Python 3.7 and later.

  2. Simplified Version Check: Simplified the version check for Python 3.10 or later.

  3. Removed Unused Imports: Removed unused imports to clean up the code.

  4. Simplified Type Annotation: Removed the type annotation for action.type in the format_action function to simplify the code.

  5. Improved Readability: Made minor formatting improvements to enhance readability.