Skip to content

Commit

Permalink
chore(deps): update mypy to v1 (major) (#1029)
Browse files Browse the repository at this point in the history
* chore(deps): update mypy to v1

* update tuple[int, int] -> tuple[int, optional[int]] for mypy

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: imagine-hussain <[email protected]>
  • Loading branch information
renovate[bot] and imagine-hussain authored Mar 23, 2023
1 parent cf454b1 commit 45fd621
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion backend/algorithms/tests/test_autoplanning.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
from typing import Optional
from pytest import raises
from algorithms.autoplanning import autoplan, terms_between
from algorithms.objects.course import Course
Expand Down Expand Up @@ -129,7 +130,7 @@ def assert_autoplanning_guarantees(uoc_max: list[int], courses: list[Course], pr
course_names = [course[0] for course in res if terms_between((2020, 0), course[1]) == index]
assert number >= sum(get_uoc(course_name, courses) for course_name in course_names)
# all courses valid
plan: list[list[dict[str, tuple[int, int]]]] = [[{}, {}, {}, {}] for _ in range(2023-2020)]
plan: list[list[dict[str, tuple[int, Optional[int]]]]] = [[{}, {}, {}, {}] for _ in range(2023-2020)]
for course_name, (course_year, course_term) in res:
plan[course_year - 2020][course_term][course_name] = (get_uoc(course_name, courses), get_mark(course_name, courses))
assert all(course_state['is_accurate'] for course_state in validate_terms(ValidPlannerData(
Expand Down
4 changes: 2 additions & 2 deletions backend/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
fastapi==0.88.0
fuzzywuzzy==0.18.0
hypothesis==6.61.0
mypy==0.991
mypy-extensions==0.4.4
mypy==1.1.1
mypy-extensions==1.0.0
ortools==9.5.2237
pymongo==4.3.3
pytest==7.2.2
Expand Down

0 comments on commit 45fd621

Please sign in to comment.