Skip to content
This repository was archived by the owner on Aug 29, 2021. It is now read-only.

Commit d6ff973

Browse files
committed
[fix] Unexpected behaviour in CCmd.copy()
1 parent b172a1e commit d6ff973

3 files changed

Lines changed: 4 additions & 3 deletions

File tree

disctools/__version_info__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@ def __repr__(self) -> str:
9595
minor = 5,
9696
patch = 3,
9797
status = status_map["final"],
98+
post = 1
9899
)
99100

100101
__version__ = str(version_info)

disctools/commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -404,10 +404,10 @@ def __init__(self, func: Optional[AsyncCallable] = None, **kwargs) -> None:
404404
for i in self.__class__.__fut_sub_cmds__.values():
405405
self.add_command(i)
406406
i.cogcmd = self
407-
self.__class__.__fut_sub_cmds__ = False
407+
self.__class__.__fut_sub_cmds__.clear()
408408

409409
def copy(self):
410-
ret = super(Command, self).copy()
410+
ret = _Command.copy(self)
411411
for cmd in map(lambda x: x.copy(), self.commands):
412412
ret.add_command(cmd)
413413
cmd.cogcmd = ret

version.num

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.5.3
1+
0.5.3.post1

0 commit comments

Comments
 (0)