We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2299612 commit deb6416Copy full SHA for deb6416
bpython/paste.py
@@ -22,7 +22,7 @@
22
23
import errno
24
import subprocess
25
-from typing import Tuple
+from typing import Optional, Tuple, Protocol
26
from urllib.parse import urljoin, urlparse
27
28
import requests
@@ -36,6 +36,11 @@ class PasteFailed(Exception):
36
pass
37
38
39
+class Paster(Protocol):
40
+ def paste(self, s: str) -> Tuple[str, Optional[str]]:
41
+ ...
42
+
43
44
class PastePinnwand:
45
def __init__(self, url: str, expiry: str) -> None:
46
self.url = url
0 commit comments