Skip to content
This repository has been archived by the owner on May 5, 2024. It is now read-only.

Commit

Permalink
BF
Browse files Browse the repository at this point in the history
  • Loading branch information
bleudev committed Jul 30, 2022
1 parent 717abcb commit a1f91e1
Show file tree
Hide file tree
Showing 15 changed files with 34 additions and 15 deletions.
6 changes: 4 additions & 2 deletions disspy/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
import disspy.message
import disspy.user
import disspy.reaction
import disspy.ui

# Classes
from disspy.activity import (
Expand Down Expand Up @@ -113,7 +114,7 @@


# Methods for other varibles
def _all_generator(alls: list[tuple]) -> tuple:
def _all_generator(alls: list) -> tuple:
result = []

for file_all in alls:
Expand Down Expand Up @@ -144,7 +145,7 @@ def _all_generator(alls: list[tuple]) -> tuple:


# __all__
__alls__: list[tuple] = [
__alls__: list = [
disspy.activity.__all__,
disspy.application_commands.__all__,
disspy.channel.__all__,
Expand All @@ -157,6 +158,7 @@ def _all_generator(alls: list[tuple]) -> tuple:
disspy.message.__all__,
disspy.user.__all__,
disspy.reaction.__all__
disspy.ui.__all__
]

__all__: tuple = _all_generator(__alls__)
2 changes: 1 addition & 1 deletion disspy/activity.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"""


__all__: tuple[str] = (
__all__: tuple = (
"Activity",
"ActivityType"
)
Expand Down
2 changes: 1 addition & 1 deletion disspy/application_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
from disspy.jsongenerators import _OptionGenerator
from disspy.ui import ActionRow

__all__: tuple[str] = (
__all__: tuple = (
"ApplicationCommandType",
"ApplicationCommand",
"Option",
Expand Down
2 changes: 1 addition & 1 deletion disspy/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
Union
)

__all__: tuple[str] = (
__all__: tuple = (
"DisChannel",
"DisDmChannel"
)
Expand Down
2 changes: 1 addition & 1 deletion disspy/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
from disspy.logger import Logger
from disspy.user import DisUser

__all__: tuple[str] = (
__all__: tuple = (
"DisBotStatus",
"DisBotEventType",
"DisBot"
Expand Down
2 changes: 1 addition & 1 deletion disspy/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@
JsonOutput = NewType("JsonOutput", Dict[str, Any])

# __all__
__all__: tuple[str] = (
__all__: tuple = (
# Classes for simpler creating other classes
"JsonOutput",
"FlowOpcodes",
Expand Down
2 changes: 1 addition & 1 deletion disspy/embed.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
from math import floor
import typing

__all__: tuple[str] = (
__all__: tuple = (
"DisColor",
"DisField",
"DisEmbed"
Expand Down
2 changes: 1 addition & 1 deletion disspy/errors.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
missingperms = "Missing permissions!"

# __all__
__all__: tuple[str] = (
__all__: tuple = (
"InternetError",
"MissingPerms",
"Unauthorized",
Expand Down
2 changes: 1 addition & 1 deletion disspy/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SOFTWARE.
"""

__all__: tuple[str] = (
__all__: tuple = (
"DisGuildTemplate",
"DisGuild"
)
Expand Down
2 changes: 1 addition & 1 deletion disspy/logger.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SOFTWARE.
"""

__all__: tuple[str] = (
__all__: tuple = (
"Logger"
)

Expand Down
2 changes: 1 addition & 1 deletion disspy/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SOFTWARE.
"""

__all__: tuple[str] = (
__all__: tuple = (
"DisMessage",
"DmMessage",
"MessageDeleteEvent",
Expand Down
2 changes: 1 addition & 1 deletion disspy/reaction.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

from disspy.user import DisUser

__all__: tuple[str] = (
__all__: tuple = (
"DisEmoji",
"DisOwnReaction",
"DisReaction",
Expand Down
11 changes: 11 additions & 0 deletions disspy/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,17 @@
from disspy.reaction import DisEmoji
from disspy import errors

__all__: tuple = (
"Component",
"Button",
"ButtonStyle",
"SelectMenuOption",
"SelectMenu",
"TextInput",
"TextInputStyle",
"ActionRow"
)


class Component:
"""
Expand Down
2 changes: 1 addition & 1 deletion disspy/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
SOFTWARE.
"""

__all__: tuple[str] = (
__all__: tuple = (
"DisUser"
)

Expand Down
8 changes: 7 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@
with open("README.md", "r", encoding="utf-8") as mdf:
long_description = mdf.read()

requires = ["aiohttp>=3.6.0,<4", "requests", "typing", "asyncio", "colorama"]
requires = ''

with open("requirements.txt","r") as f:
requires = f.read().splitlines()


setup(
Expand All @@ -18,6 +21,9 @@
long_description_content_type="text/markdown",
url="https://github.com/itttgg/dispy",
packages=['disspy'],
classifiers = [
"Programming Language :: Python :: 3"
],
zip_safe=False,
python_requires=">=3.8",
install_requires=requires
Expand Down

0 comments on commit a1f91e1

Please sign in to comment.