fix: Fix pyupgrade failures (PR #2163)

Related issues

  • Closes #

Proposed changes

Describe the big picture of your changes here to communicate to the reviewers why we should accept this pull request. If it fixes a bug or resolves a feature request, be sure to link to that issue.

How to reproduce

Explain like if someone who doesn’t know this project is reviewing your changes and how they can replicate this.

Screenshots and videos

Paste here any screenshots or videos related to your changes, if applicable.

Further comments

If this is a relatively large or complex change, kick off the discussion by explaining why you chose the solution you did and what alternatives you considered, etc…


:mag: Existing Issues For Review

Your pull request is modifying functions with the following pre-existing issues:

:page_facing_up: File: ankihub/decks/

Did you find this useful? React with a :+1: or :-1:

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 97.85%. Comparing base (5ec9d07) to head (8215db8).

:exclamation: Current head 8215db8 differs from pull request most recent head 077574c

Please upload reports for the commit 077574c to get more accurate results.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev    #2163   +/-   ##
  Coverage   97.85%   97.85%           
  Files         160      160           
  Lines       22327    22327           
  Hits        21849    21849           
  Misses        478      478           

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

The title of this pull request changed from “fix: Fix pyupdagrade failures” to "fix: Fix pyupgrade failures