Skip to content

Commit

Permalink
Fix typing runtime issue
Browse files Browse the repository at this point in the history
  • Loading branch information
parafoxia committed Nov 27, 2021
1 parent c7f8116 commit 78ea2c3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modmail/utils/string.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,8 @@
# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

from __future__ import annotations

import typing as t

if t.TYPE_CHECKING:
Expand All @@ -48,6 +50,6 @@ def ordinal(number: int) -> str:
return f"{number:,}th"


def possessive(user: Member | User) -> str:
def possessive(user: "Member" | "User") -> str:
name = getattr(user, "display_name", user.username)
return f"{name}'{'s' if not name.endswith('s') else ''}"

0 comments on commit 78ea2c3

Please sign in to comment.