Skip to content

Commit

Permalink
chore: more comments
Browse files Browse the repository at this point in the history
  • Loading branch information
jennifer-richards committed Feb 5, 2025
1 parent c09699c commit 0696fc9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ietf/doc/factories.py
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ class Meta:

type = 'added_comment'
by = factory.SubFactory('ietf.person.factories.PersonFactory')
doc: Any = factory.SubFactory(DocumentFactory)
doc: Any = factory.SubFactory(DocumentFactory) # `Any` to appease mypy when a subclass overrides doc
desc = factory.Faker('sentence',nb_words=6)

@factory.lazy_attribute
Expand Down
2 changes: 1 addition & 1 deletion ietf/ipr/tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -726,7 +726,7 @@ def test_notify_generic(self):
self.assertIn(f'{settings.IDTRACKER_BASE_URL}{urlreverse("ietf.ipr.views.showlist")}', get_payload_text(outbox[1]).replace('\n',' '))

def send_ipr_email_helper(self) -> tuple[str, IprEvent, HolderIprDisclosure]:
ipr = HolderIprDisclosureFactory.create()
ipr = HolderIprDisclosureFactory.create() # call create() explicitly so mypy sees correct type
url = urlreverse('ietf.ipr.views.email',kwargs={ "id": ipr.id })
self.client.login(username="secretary", password="secretary+password")
yesterday = date_today() - datetime.timedelta(1)
Expand Down
1 change: 1 addition & 0 deletions ietf/meeting/tests_views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2124,6 +2124,7 @@ def create_timeslots_url(meeting):
@staticmethod
def create_bare_meeting(number=120) -> Meeting:
"""Create a basic IETF meeting"""
# Call create() explicitly so mypy sees the correct type
return MeetingFactory.create(
type_id='ietf',
number=number,
Expand Down

0 comments on commit 0696fc9

Please sign in to comment.