AdvancedTagScript 3.3.0__py3-none-any.whl → 3.3.1__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.
@@ -181,7 +181,7 @@ __all__: Tuple[str, ...] = (
181
181
  )
182
182
 
183
183
 
184
- __version__: Final[str] = "3.3.0"
184
+ __version__: Final[str] = "3.3.1"
185
185
 
186
186
 
187
187
  class VersionNamedTuple(NamedTuple):
@@ -1,3 +1,5 @@
1
+ from __future__ import annotations
2
+
1
3
  import datetime
2
4
  from typing import Any, Dict, Optional, Tuple, cast
3
5
 
@@ -23,12 +25,13 @@ __all__: Tuple[str, ...] = ("RedCommandAdapter", "RedBotAdapter")
23
25
 
24
26
 
25
27
  class RedCommandAdapter(SimpleAdapter["Command"]):
26
- if not _has_redbot:
27
- raise ImportError("A Red-DiscordBot instance is required to use this.", name="redbot")
28
-
29
28
  def __init__(self, base: Command, *, signature: Optional[str] = None) -> None:
30
- super().__init__(base=base)
29
+ if not _has_redbot:
30
+ raise ImportError(
31
+ "A Red-DiscordBot instance is required to use this.", name="redbot"
32
+ )
31
33
  self.signature: Optional[str] = signature
34
+ super().__init__(base=base)
32
35
 
33
36
  def update_attributes(self) -> None:
34
37
  command: Command = self.object
@@ -106,12 +109,11 @@ class RedBotAdapter(SimpleAdapter["Red"]):
106
109
  Attributes denoting ``(*)`` can only be used by the bot owner.
107
110
  """
108
111
 
109
- if not _has_redbot:
110
- raise ImportError("A Red-DiscordBot instance is required to use this.")
111
-
112
112
  def __init__(self, base: Red, *, owner: bool = True) -> None:
113
- super().__init__(base=base)
113
+ if not _has_redbot:
114
+ raise ImportError("A Red-DiscordBot instance is required to use this.")
114
115
  self.is_owner: bool = owner
116
+ super().__init__(base=base)
115
117
 
116
118
  def update_attributes(self) -> None:
117
119
  self.user: discord.ClientUser = cast(discord.ClientUser, self.object.user)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: AdvancedTagScript
3
- Version: 3.3.0
3
+ Version: 3.3.1
4
4
  Summary: An easy drop in user-provided Templating system.
5
5
  Home-page: https://github.com/cool-aid-man/TagScriptEngine
6
6
  Author: cool-aid-man, inthedark.org, PhenoM4n4n
@@ -1,4 +1,4 @@
1
- TagScriptEngine/__init__.py,sha256=v1jE2WhSkANRnPWLj4UieHunkkCnO6aNEaACln7u2dI,6143
1
+ TagScriptEngine/__init__.py,sha256=qXJ4KzdO5ibSYFDW6viRcN50OBzlVvHdxMn3RRCfESs,6144
2
2
  TagScriptEngine/_warnings.py,sha256=pfMXaEVGpIue0eqgzZ6HkLXEka1UGl61-yuH9uEnVe4,2662
3
3
  TagScriptEngine/exceptions.py,sha256=lhvskKi2AySE5pul_iAA251jdMv-92QkjodR4X-G27Y,2833
4
4
  TagScriptEngine/interpreter.py,sha256=5kF0kEqaZf5Hyu8tkmDDLEy7y-qvd6xiUJ3GwpDDh44,16638
@@ -10,7 +10,7 @@ TagScriptEngine/adapter/discordadapters.py,sha256=l_6HijmmGDRX7lhahskH6mTteJFpS7
10
10
  TagScriptEngine/adapter/functionadapter.py,sha256=lQlWm0dO-41bTQ2etFpWRaGnG22V1HMy9aiB8FnFZOU,591
11
11
  TagScriptEngine/adapter/intadapter.py,sha256=jENx5ah8k0U1PjJccV0NiYFsWFU9ZXTFgz3f-qx30SA,548
12
12
  TagScriptEngine/adapter/objectadapter.py,sha256=7bW-Qd6gujq2ALdK3p0ONoCSPWCTv6srkkDNjzkvDEU,1017
13
- TagScriptEngine/adapter/redbotadapters.py,sha256=9a0EDSmelI-RJF6Mgpti1fogsNIAvNoC3F40aTKGKgk,5936
13
+ TagScriptEngine/adapter/redbotadapters.py,sha256=CIHZPYtB_W3Tz9Q-FuSsGWuWvtmQ-0cgZIRVg_CETKc,6018
14
14
  TagScriptEngine/adapter/stringadapter.py,sha256=VaJzkm1b8b7w1T90DjR3gOH0DIsZlWtcFe1YG7DOqBQ,1710
15
15
  TagScriptEngine/block/__init__.py,sha256=zfoPTCTBDIuOkcjKnNL8gYIRKOi4c4gkYNwNJPvYctQ,3223
16
16
  TagScriptEngine/block/allowedmentions.py,sha256=WMGWi1Fe0U_vUBsc4uyiX1XfQjGkhpdlyvq3HhCCLd4,2219
@@ -44,8 +44,8 @@ TagScriptEngine/block/urlencodeblock.py,sha256=sWqdSBk-uTZZjebKhAFmlROvnQvLcjvyI
44
44
  TagScriptEngine/interface/__init__.py,sha256=37lAOMONKmWDLiC5Ox9Y3TNQUQbzW54oUugbQe0e9gc,341
45
45
  TagScriptEngine/interface/adapter.py,sha256=4jBBz7hc-8fsRSZ5DWOrUxrhXqS0SvJCdW57TZl8sQo,1967
46
46
  TagScriptEngine/interface/block.py,sha256=S0hWRH6uqBz_cYRIh3LGMyo63UK6gNidtf6EiLUKL0c,3653
47
- advancedtagscript-3.3.0.dist-info/licenses/LICENSE,sha256=NvdimESU3jrNgd_8E4i-eTecQ_jGegRrrWk1v2gOnHY,252
48
- advancedtagscript-3.3.0.dist-info/METADATA,sha256=Jk7KqEwJRIWH9XZrCbZCELDLF2vl121n3jMSaRc4-J0,3565
49
- advancedtagscript-3.3.0.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
50
- advancedtagscript-3.3.0.dist-info/top_level.txt,sha256=6lY4lZDvWxraERrit1lvDsCCDdfo9e83kk_tBemAJCo,16
51
- advancedtagscript-3.3.0.dist-info/RECORD,,
47
+ advancedtagscript-3.3.1.dist-info/licenses/LICENSE,sha256=NvdimESU3jrNgd_8E4i-eTecQ_jGegRrrWk1v2gOnHY,252
48
+ advancedtagscript-3.3.1.dist-info/METADATA,sha256=9itEFRENyeoFYtftKMRRtBW1iCqjGTF6dOEnfLKR-zg,3565
49
+ advancedtagscript-3.3.1.dist-info/WHEEL,sha256=aeYiig01lYGDzBgS8HxWXOg3uV61G9ijOsup-k9o1sk,91
50
+ advancedtagscript-3.3.1.dist-info/top_level.txt,sha256=6lY4lZDvWxraERrit1lvDsCCDdfo9e83kk_tBemAJCo,16
51
+ advancedtagscript-3.3.1.dist-info/RECORD,,