Skip to content

Commit 033f046

Browse files
committed
Update return type of 'of' method in Users class to Self for improved type hinting
1 parent 156ac25 commit 033f046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/jellyfin/users.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
Module `user` - High-level interface for UserApi and UserViewsApi.
33
"""
44
from typing import Callable
5+
from typing_extensions import Self
56

67
import uuid
78

@@ -32,7 +33,7 @@ def __init__(self, user_api: UserApi, user_views_api: UserViewsApi):
3233
self._user_api = user_api
3334
self._user_views_api = user_views_api
3435

35-
def of(self, user_name_or_uuid: str | uuid.UUID) -> 'User':
36+
def of(self, user_name_or_uuid: str | uuid.UUID) -> Self:
3637
"""Set user context
3738
3839
Args:

0 commit comments

Comments
 (0)