Skip to content

Commit 271c06f

Browse files
committed
bug fixes of bad naming and circular import
1 parent ccc72d2 commit 271c06f

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

mystbin/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
from collections import namedtuple
2626

27-
from .client import MystbinClient
27+
from .client import Client
2828
from .errors import *
2929

3030
__version__ = "1.0.0"

mystbin/client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@
3131
if TYPE_CHECKING:
3232
import requests
3333

34-
from . import __version__ as ver
3534
from .constants import *
3635
from .errors import *
3736
from .objects import *
@@ -70,7 +69,7 @@ def _generate_sync_session(self, session: Type["requests.Session"]) -> Type["req
7069
# the passed session was found to be 'sync'.
7170
if self.api_key:
7271
session.headers.update(
73-
{"Authorization": self.api_key, "User-Agent": f"Mystbin.py v{ver}"})
72+
{"Authorization": self.api_key, "User-Agent": f"Mystbin.py"})
7473

7574
return session
7675

@@ -81,7 +80,7 @@ async def _generate_async_session(self, session: Optional[aiohttp.ClientSession]
8180

8281
if self.api_key:
8382
session._default_headers.update(
84-
{"Authorization": self.api_key, "User-Agent": f"Mystbin.py v{ver}"})
83+
{"Authorization": self.api_key, "User-Agent": f"Mystbin.py"})
8584

8685
session._timeout = aiohttp.ClientTimeout(CLIENT_TIMEOUT)
8786
return session

0 commit comments

Comments
 (0)