Skip to content

Remove unused imports and a dead assignment - #173

Open
DaoyuanLi2816 wants to merge 1 commit into
bytedance:masterfrom
DaoyuanLi2816:fix/remove-unused-imports-and-var
Open

Remove unused imports and a dead assignment#173
DaoyuanLi2816 wants to merge 1 commit into
bytedance:masterfrom
DaoyuanLi2816:fix/remove-unused-imports-and-var

Conversation

@DaoyuanLi2816

Copy link
Copy Markdown

What does this PR do?

Removes unused imports and one dead assignment flagged by flake8 (F401/F841). No behavior change:

  • demo_element.py: unused cv2 import
  • utils/markdown_utils.py: unused base64 import
  • utils/utils.py: unused dataclass, List, Tuple imports
  • demo_layout.py: json_path was assigned from save_outputs(...) but never used — dropped the assignment, keeping the call for its side effect

flake8 (F401/F841) flags several unused names:

- demo_element.py: unused `cv2` import
- utils/markdown_utils.py: unused `base64` import
- utils/utils.py: unused `dataclass`, `List`, `Tuple` imports
- demo_layout.py: `json_path` is assigned from `save_outputs(...)` but never used

Drop the unused imports and the dead assignment (the `save_outputs(...)` call is
kept for its side effect).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant