Skip to content

Conversation

@codingjoe
Copy link
Owner

No description provided.

Copilot AI review requested due to automatic review settings November 28, 2025 15:15
@codingjoe codingjoe self-assigned this Nov 28, 2025
Copilot finished reviewing on behalf of codingjoe November 28, 2025 15:18
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR fixes various type hints throughout the codebase and includes a minor functional fix.

  • Updates type annotations to use proper syntax (e.g., tuple[int, int] instead of (int, int))
  • Corrects return type hints for PIL Image objects
  • Renames test helper class to avoid confusion with actual test classes
  • Adds conditional logic for width/height attributes in picture template tag

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
tests/test_utils.py Renamed TestPicture to SamplePicture to avoid confusion with actual test classes
pictures/utils.py Fixed tuple type hint syntax and removed unnecessary parentheses in draw.line() calls
pictures/templatetags/pictures.py Added conditional logic to only include width/height attributes when ratio is None
pictures/models.py Fixed return type hints for Image.Image and dict types; updated xor return type (with issue noted)

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Copilot AI review requested due to automatic review settings November 28, 2025 15:27
Copilot finished reviewing on behalf of codingjoe November 28, 2025 15:29
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

Copilot AI review requested due to automatic review settings November 28, 2025 16:00
@codecov
Copy link

codecov bot commented Nov 28, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 100.00%. Comparing base (0a668bb) to head (52aa4bd).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #237   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files           13        13           
  Lines          494       495    +1     
=========================================
+ Hits           494       495    +1     
Flag Coverage Δ
celery 85.05% <100.00%> (+0.03%) ⬆️
cleanup 88.48% <100.00%> (+0.02%) ⬆️
dj4.2 88.48% <100.00%> (+0.02%) ⬆️
dj5.1 88.48% <100.00%> (+0.02%) ⬆️
django-rq 85.05% <100.00%> (+0.03%) ⬆️
dramatiq 85.05% <100.00%> (+0.03%) ⬆️
drf 96.36% <100.00%> (+<0.01%) ⬆️
macos-latest 88.68% <100.00%> (+0.02%) ⬆️
py3.10 88.48% <100.00%> (+0.02%) ⬆️
py3.11 88.48% <100.00%> (+0.02%) ⬆️
py3.12 88.48% <100.00%> (+0.02%) ⬆️
py3.13 88.48% <100.00%> (+0.02%) ⬆️
py3.14 88.48% <100.00%> (+0.02%) ⬆️
ubuntu-latest 88.48% <100.00%> (+0.02%) ⬆️
windows-latest 81.58% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copilot finished reviewing on behalf of codingjoe November 28, 2025 16:01
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@codingjoe codingjoe merged commit 32289a5 into main Nov 28, 2025
26 of 27 checks passed
@codingjoe codingjoe deleted the typing branch November 28, 2025 16:03
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