Skip to content

Conversation

iqbalcodes6602
Copy link
Collaborator

Fixes: #23

  • Upgrading the python version from 3.8 to 3.11
  • Fixing the api response type error in utils/update_assignment_problems.py file which arose due to the python upgrade.

Copy link
Collaborator

@pabo99 pabo99 left a comment

Choose a reason for hiding this comment

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

Thank you, @iqbalcodes6602!


def assignment_exists(assignments: List[Dict[str, Any]], alias: str) -> bool:
return any(a["alias"] == alias for a in assignments)
def assignment_exists(assignments: List[Any], alias: str) -> bool:
Copy link
Collaborator

Choose a reason for hiding this comment

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

I don’t really like the use of the Any type, since this clearly seems to be an object.

But to speed up the review, we can fix that later by implementing the mypy type checker (in any case, that’s out of the scope of this project).

@pabo99 pabo99 merged commit 671147d into omegaup:main Aug 29, 2025
3 checks passed
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.

Upgrade the Python Version

2 participants