Skip to content

Commit e4d3805

Browse files
committed
v.0.2.3 - optional dep was not optional lol
1 parent 927a215 commit e4d3805

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

mystbin/client.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@
2424

2525
import asyncio
2626
import json
27-
from typing import Awaitable, Callable, Optional, Union
27+
from typing import Awaitable, Callable, Optional, Union, TYPE_CHECKING
28+
if TYPE_CHECKING:
29+
import requests
2830

2931
import aiohttp
30-
import requests
3132
import yarl
3233

3334
from .constants import *
@@ -126,7 +127,7 @@ async def _perform_async_post(self, content: str, syntax: str = None) -> Paste:
126127

127128
return Paste(response_data, syntax)
128129

129-
def get(self, paste_id: str) -> str:
130+
def get(self, paste_id: str) -> Union[PasteData, Awaitable]:
130131
"""
131132
This will perform a GET request against the Mystb.in API and return the url.
132133
Must be passed a valid paste ID or URL.

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "mystbin.py"
3-
version = "0.2.2"
3+
version = "0.2.3"
44
description = "A small simple wrapper around the mystb.in API."
55
authors = ["AbstractUmbra <Umbra@AbstractUmbra.xyz>"]
66
license = "MIT"

0 commit comments

Comments
 (0)