Skip to content

Commit

Permalink
[#2648] Fix type ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
pbanaszkiewicz committed May 31, 2024
1 parent bf8531f commit e05049d
Show file tree
Hide file tree
Showing 12 changed files with 42 additions and 24 deletions.
4 changes: 2 additions & 2 deletions amy/emails/actions/admin_signs_instructor_up_for_workshop.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ def get_recipients_context_json(
{
"api_uri": api_model_url("person", context["person"].pk),
"property": "email",
},
], # type: ignore
}, # type: ignore
],
)


Expand Down
4 changes: 2 additions & 2 deletions amy/emails/actions/instructor_badge_awarded.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,8 @@ def get_recipients_context_json(
{
"api_uri": api_model_url("person", context["person"].pk),
"property": "email",
},
], # type: ignore
}, # type: ignore
],
)


Expand Down
4 changes: 2 additions & 2 deletions amy/emails/actions/instructor_confirmed_for_workshop.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def get_recipients_context_json(
{
"api_uri": api_model_url("person", context["person"].pk),
"property": "email",
},
], # type: ignore
}, # type: ignore
],
)


Expand Down
4 changes: 2 additions & 2 deletions amy/emails/actions/instructor_declined_from_workshop.py
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,8 @@ def get_recipients_context_json(
{
"api_uri": api_model_url("person", context["person"].pk),
"property": "email",
},
], # type: ignore
}, # type: ignore
],
)


Expand Down
4 changes: 2 additions & 2 deletions amy/emails/actions/instructor_signs_up_for_workshop.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,8 @@ def get_recipients_context_json(
{
"api_uri": api_model_url("person", context["person"].pk),
"property": "email",
},
], # type: ignore
}, # type: ignore
],
)


Expand Down
4 changes: 2 additions & 2 deletions amy/emails/actions/persons_merged.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ def get_recipients_context_json(
{
"api_uri": api_model_url("person", context["person"].pk),
"property": "email",
},
], # type: ignore
}, # type: ignore
],
)


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ def test_email_scheduled(
to_header=[person.email],
to_header_context_json=ToHeaderModel(
[
{"api_uri": api_model_url("person", person.pk), "property": "email"}
] # type: ignore
{
"api_uri": api_model_url("person", person.pk),
"property": "email",
} # type: ignore
]
),
generic_relation_obj=signup,
author=None,
Expand Down
7 changes: 5 additions & 2 deletions amy/emails/tests/actions/test_instructor_badge_awarded.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,11 @@ def test_email_scheduled(
to_header=[person.email],
to_header_context_json=ToHeaderModel(
[
{"api_uri": api_model_url("person", person.pk), "property": "email"}
] # type: ignore
{
"api_uri": api_model_url("person", person.pk),
"property": "email",
} # type: ignore
]
),
generic_relation_obj=award,
author=None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ def test_email_scheduled(
to_header=[person.email],
to_header_context_json=ToHeaderModel(
[
{"api_uri": api_model_url("person", person.pk), "property": "email"}
] # type: ignore
{
"api_uri": api_model_url("person", person.pk),
"property": "email",
} # type: ignore
]
),
generic_relation_obj=signup,
author=None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ def test_email_scheduled(
to_header=[person.email],
to_header_context_json=ToHeaderModel(
[
{"api_uri": api_model_url("person", person.pk), "property": "email"}
] # type: ignore
{
"api_uri": api_model_url("person", person.pk),
"property": "email",
} # type: ignore
]
),
generic_relation_obj=signup,
author=None,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -146,8 +146,11 @@ def test_email_scheduled(
to_header=[person.email],
to_header_context_json=ToHeaderModel(
[
{"api_uri": api_model_url("person", person.pk), "property": "email"}
] # type: ignore
{
"api_uri": api_model_url("person", person.pk),
"property": "email",
} # type: ignore
]
),
generic_relation_obj=signup,
author=None,
Expand Down
7 changes: 5 additions & 2 deletions amy/emails/tests/actions/test_persons_merged.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,11 @@ def test_email_scheduled(
to_header=[person.email],
to_header_context_json=ToHeaderModel(
[
{"api_uri": api_model_url("person", person.pk), "property": "email"}
] # type: ignore
{
"api_uri": api_model_url("person", person.pk),
"property": "email",
} # type: ignore
]
),
generic_relation_obj=person,
author=None,
Expand Down

0 comments on commit e05049d

Please sign in to comment.