File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change 22"""Objects, properties, and methods to be shared across other modules in the
33trakt package
44"""
5+
56import os
67from functools import lru_cache
78from typing import NamedTuple
@@ -86,10 +87,10 @@ def config():
8687def api ():
8788 """
8889 Create an HTTP client for interacting with the Trakt API using configured authentication.
89-
90+
9091 Returns:
9192 HttpClient: A configured HTTP client with token-based authentication for making API requests.
92-
93+
9394 Notes:
9495 - Uses the global BASE_URL and session for creating the HTTP client
9596 - Configures the client with a TokenAuth instance using the current authentication configuration
@@ -136,19 +137,23 @@ class Comment(NamedTuple):
136137# Backward compat with 3.x
137138def delete (f ):
138139 from trakt .decorators import delete
140+
139141 return delete (f )
140142
141143
142144def get (f ):
143145 from trakt .decorators import get
146+
144147 return get (f )
145148
146149
147150def post (f ):
148151 from trakt .decorators import post
152+
149153 return post (f )
150154
151155
152156def put (f ):
153157 from trakt .decorators import put
158+
154159 return put (f )
You can’t perform that action at this time.
0 commit comments