Skip to content

Commit 03d9ed1

Browse files
committed
correct publicity of types
1 parent a9d4a4a commit 03d9ed1

File tree

3 files changed

+4
-20
lines changed

3 files changed

+4
-20
lines changed

mystbin/__init__.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -24,21 +24,7 @@
2424

2525
__version__ = "7.1.1"
2626

27-
from typing import Literal, NamedTuple
2827

2928
from .client import Client as Client
3029
from .errors import *
3130
from .paste import File as File, Paste as Paste
32-
33-
34-
class VersionInfo(NamedTuple):
35-
major: int
36-
minor: int
37-
micro: int
38-
releaselevel: Literal["alpha", "beta", "candidate", "final"]
39-
serial: int
40-
41-
42-
version_info: VersionInfo = VersionInfo(major=7, minor=1, micro=1, releaselevel="final", serial=0)
43-
44-
del NamedTuple, Literal, VersionInfo

mystbin/types_/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,6 @@
2020
DEALINGS IN THE SOFTWARE.
2121
"""
2222

23-
from mystbin.types_ import responses as responses
23+
from mystbin.types_ import responses
24+
25+
__all__ = ("responses",)

mystbin/types_/responses.py

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

2525
from typing import TypedDict
2626

27-
__all__ = (
28-
"CreatePasteResponse",
29-
"FileResponse",
30-
"GetPasteResponse",
31-
)
27+
__all__ = ()
3228

3329

3430
class FileResponse(TypedDict):

0 commit comments

Comments
 (0)