hikari-arc 1.3.2__py3-none-any.whl → 1.3.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- arc/abc/client.py +2 -2
- arc/abc/command.py +2 -9
- arc/internal/about.py +1 -1
- {hikari_arc-1.3.2.dist-info → hikari_arc-1.3.3.dist-info}/METADATA +1 -1
- {hikari_arc-1.3.2.dist-info → hikari_arc-1.3.3.dist-info}/RECORD +8 -8
- {hikari_arc-1.3.2.dist-info → hikari_arc-1.3.3.dist-info}/LICENSE +0 -0
- {hikari_arc-1.3.2.dist-info → hikari_arc-1.3.3.dist-info}/WHEEL +0 -0
- {hikari_arc-1.3.2.dist-info → hikari_arc-1.3.3.dist-info}/top_level.txt +0 -0
arc/abc/client.py
CHANGED
|
@@ -333,8 +333,8 @@ class Client(t.Generic[AppT], abc.ABC):
|
|
|
333
333
|
inj_ctx = alluka.OverridingContext.from_client(self.injector)
|
|
334
334
|
|
|
335
335
|
for hook in self._injection_hooks:
|
|
336
|
-
if inspect.
|
|
337
|
-
await hook(ctx, inj_ctx)
|
|
336
|
+
if inspect.isawaitable(hook):
|
|
337
|
+
await hook(ctx, inj_ctx) # type: ignore
|
|
338
338
|
else:
|
|
339
339
|
hook(ctx, inj_ctx)
|
|
340
340
|
return inj_ctx
|
arc/abc/command.py
CHANGED
|
@@ -2,7 +2,6 @@ from __future__ import annotations
|
|
|
2
2
|
|
|
3
3
|
import abc
|
|
4
4
|
import asyncio
|
|
5
|
-
import inspect
|
|
6
5
|
import typing as t
|
|
7
6
|
|
|
8
7
|
import attr
|
|
@@ -549,10 +548,7 @@ class CommandBase(
|
|
|
549
548
|
try:
|
|
550
549
|
hooks = command._resolve_hooks()
|
|
551
550
|
for hook in hooks:
|
|
552
|
-
|
|
553
|
-
res = await ctx._injection_ctx.call_with_async_di(hook, ctx)
|
|
554
|
-
else:
|
|
555
|
-
res = ctx._injection_ctx.call_with_di(hook, ctx)
|
|
551
|
+
res = await ctx._injection_ctx.call_with_async_di(hook, ctx)
|
|
556
552
|
|
|
557
553
|
res = t.cast(HookResult | None, res)
|
|
558
554
|
|
|
@@ -569,10 +565,7 @@ class CommandBase(
|
|
|
569
565
|
try:
|
|
570
566
|
post_hooks = command._resolve_post_hooks()
|
|
571
567
|
for hook in post_hooks:
|
|
572
|
-
|
|
573
|
-
await ctx._injection_ctx.call_with_async_di(hook, ctx)
|
|
574
|
-
else:
|
|
575
|
-
ctx._injection_ctx.call_with_di(hook, ctx)
|
|
568
|
+
await ctx._injection_ctx.call_with_async_di(hook, ctx)
|
|
576
569
|
except Exception as e:
|
|
577
570
|
await command._handle_exception(ctx, e)
|
|
578
571
|
finally:
|
arc/internal/about.py
CHANGED
|
@@ -5,7 +5,7 @@ __author_email__: t.Final[str] = "git@hypergonial.com"
|
|
|
5
5
|
__maintainer__: t.Final[str] = "hypergonial"
|
|
6
6
|
__license__: t.Final[str] = "MIT"
|
|
7
7
|
__url__: t.Final[str] = "https://github.com/hypergonial/hikari-arc"
|
|
8
|
-
__version__: t.Final[str] = "1.3.
|
|
8
|
+
__version__: t.Final[str] = "1.3.3"
|
|
9
9
|
|
|
10
10
|
# MIT License
|
|
11
11
|
#
|
|
@@ -8,8 +8,8 @@ arc/locale.py,sha256=nEKKQi-oKdU8VZQdWdFTL-tNECwhtTVv3I3vTsU_1f8,4921
|
|
|
8
8
|
arc/plugin.py,sha256=8-TGlfxPUYy6uRr-o_LXYD4t5CnQ1lQvQ0psGkkI6L0,8622
|
|
9
9
|
arc/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
10
10
|
arc/abc/__init__.py,sha256=J9KxcN9gHHKW_GDrJD_5fu76Ya6l4XvPHe0Vdqza0Pk,2277
|
|
11
|
-
arc/abc/client.py,sha256=
|
|
12
|
-
arc/abc/command.py,sha256=
|
|
11
|
+
arc/abc/client.py,sha256=yp8Do85Zf3H1XM4RoKmw_gjpY50e3NmVKMD_aha2x90,54155
|
|
12
|
+
arc/abc/command.py,sha256=u2wjx4PHFWlCFz2OyuMNOUSCf5l0Y1rn0d8yjVPtGC0,28462
|
|
13
13
|
arc/abc/concurrency_limiting.py,sha256=Ed3AUb0veY2H85X8nz9qnAPFC9aRpx9dc4xApxzaLwE,4665
|
|
14
14
|
arc/abc/error_handler.py,sha256=MvT6Pl6iCuTyRi8KFQBLzoPJLDS6UcH_nzLtxFmeRHw,3701
|
|
15
15
|
arc/abc/hookable.py,sha256=qDb-PLJcLE8cE49YKQGvNUQ6B2B5ALRcPVssEXeznNw,5484
|
|
@@ -38,7 +38,7 @@ arc/context/autocomplete.py,sha256=YOu6leCKH0mfGVj0vmo4kj1_cWUM6c_vjgooymQ6sYY,3
|
|
|
38
38
|
arc/context/base.py,sha256=4hF_p-_mnzhdw5MlVLN7EATfKg8jGAKRkkXtxRggQbc,39976
|
|
39
39
|
arc/ext/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
40
40
|
arc/internal/__init__.py,sha256=kZKBSFOkaDLe5kBvxiCQ-MWRPUZ_GBZdWwINPMkSbvo,1436
|
|
41
|
-
arc/internal/about.py,sha256=
|
|
41
|
+
arc/internal/about.py,sha256=QrNIGe5nB4YTG4flqf2hfzv9ZBTH9-UmnFaOVVgaErA,1414
|
|
42
42
|
arc/internal/deprecation.py,sha256=Lnirv1z_oj6QJvbnd38TwHQnhHhFD2rTqqvH96pxiWE,2204
|
|
43
43
|
arc/internal/options.py,sha256=EODBho9BdHOgjqqOVAEEbwOkZJiVfjFDDpUztGKUdK4,3622
|
|
44
44
|
arc/internal/sigparse.py,sha256=EsewKxcidtuoY0clEAVh8nVGmTq5hvAHxqokGOAcZPk,13518
|
|
@@ -52,8 +52,8 @@ arc/utils/ratelimiter.py,sha256=YPETOjQOga8RazYoK3Ghueh2TsOdfkH7WM58dr3ybcU,9477
|
|
|
52
52
|
arc/utils/hooks/__init__.py,sha256=pXlAQ1zGxQV-bBeeL8sKRkUyO1PmEazT_a_XKtf7GFA,515
|
|
53
53
|
arc/utils/hooks/basic.py,sha256=q6aXAyV7qPGbaQXg0Z2piPAVr1L9uN2hJGjXsbyumLE,5889
|
|
54
54
|
arc/utils/hooks/limiters.py,sha256=D0brZBnLqhUF7ycs16JllsW6gYqdlHnNOISH8iMBWkw,7490
|
|
55
|
-
hikari_arc-1.3.
|
|
56
|
-
hikari_arc-1.3.
|
|
57
|
-
hikari_arc-1.3.
|
|
58
|
-
hikari_arc-1.3.
|
|
59
|
-
hikari_arc-1.3.
|
|
55
|
+
hikari_arc-1.3.3.dist-info/LICENSE,sha256=q_osUjCCfQVI7zzgteLMZ-RlhXlB4rqQE8I0DGh7ur4,1076
|
|
56
|
+
hikari_arc-1.3.3.dist-info/METADATA,sha256=03tCSLM3Jn-XPLzRpx3JKTegwcjaocgozm_rEaN2rG0,5563
|
|
57
|
+
hikari_arc-1.3.3.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
|
|
58
|
+
hikari_arc-1.3.3.dist-info/top_level.txt,sha256=kTs_REfGfSlIT6Hq_kxH-MtDlOO6LPwFwkOoNdDCnJ4,4
|
|
59
|
+
hikari_arc-1.3.3.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|