Skip to content

Commit

Permalink
Update type hints
Browse files Browse the repository at this point in the history
  • Loading branch information
jimchamp committed Dec 9, 2024
1 parent 1c17c70 commit 7f45814
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions openlibrary/core/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from collections import defaultdict
from dataclasses import dataclass, field
from datetime import datetime, timedelta
from typing import Any, TypedDict
from typing import Any, Self, TypedDict
from urllib.parse import urlencode

import requests
Expand Down Expand Up @@ -1159,7 +1159,7 @@ def create(
tag,
ip='127.0.0.1',
comment='New Tag',
):
) -> Self:
"""Creates a new Tag object."""
current_user = web.ctx.site.get_user()
patron = current_user.get_username() if current_user else 'ImportBot'
Expand Down

0 comments on commit 7f45814

Please sign in to comment.