Skip to content

Commit

Permalink
♻️ refactor the code
Browse files Browse the repository at this point in the history
  • Loading branch information
YousefEZ committed Jan 5, 2024
1 parent df91666 commit 16b54ee
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions qalib/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
__copyright__ = "Copyright 2022-present YousefEZ"
__version__ = "2.5.2"

from .translators import P

T = TypeVar("T")
Coro = Coroutine[Any, Any, T]

Expand Down Expand Up @@ -102,8 +100,7 @@ async def function(inter: discord.Interaction, *args: Any, **kwargs: Any) -> T:
def qalib_item_interaction(
template_engine: TemplateEngine, filename: str, *renderer_options: RenderingOptions
) -> Callable[[Callable[..., Coro[T]]], Callable[..., Coro[T]]]:
"""This decorator is used to create a QalibInteraction object, and pass it to the function as it's first argument,
overriding the default interaction.
"""This decorator is used to create a QalibInteraction object, and pass it to the function as it's second argument
Args:
template_engine (TemplateEngine): template engine that is used to template the document
Expand Down

0 comments on commit 16b54ee

Please sign in to comment.