Skip to content

Add type hints to expand_bbox_to_square for improved readability#1363

Closed
Pritika2512 wants to merge 2 commits intoweecology:mainfrom
Pritika2512:add-type-hints-bbox
Closed

Add type hints to expand_bbox_to_square for improved readability#1363
Pritika2512 wants to merge 2 commits intoweecology:mainfrom
Pritika2512:add-type-hints-bbox

Conversation

@Pritika2512
Copy link
Copy Markdown

@Pritika2512 Pritika2512 commented Mar 29, 2026

Description

This PR adds type hints to the expand_bbox_to_square function to improve code readability and maintainability.

Why this change?

Type hints help developers better understand expected input and output types, improve IDE support, and assist with static analysis tools.

Changes

  • Added type annotations for:
    • bbox (list[float])
    • image_width (int)
    • image_height (int)
    • return type (list[float])

@henrykironde
Copy link
Copy Markdown
Contributor

These changes have been included in PR #1365.

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.

2 participants