Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(deps): update mypy to v1 (major) #1029

Merged
merged 2 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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