Skip to content

Commit ea8c7af

Browse files
authored
fix: minor bugs in ext (#578)
* fix: have VersionAuthor hash the encoded string of self * fix: prevent AttributeErrors in ext due to missing slots
1 parent 66d1df5 commit ea8c7af

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

interactions/ext/base.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ class Base:
2828
"version",
2929
"name",
3030
"description",
31+
"long_description",
3132
"link",
3233
)
3334

interactions/ext/version.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def __init__(
4848
self._co_author = shared
4949
self.active = active
5050
self.email = email
51-
self._hash = md5(self.__str__())
51+
self._hash = md5(self.__str__().encode())
5252

5353
def __hash__(self):
5454
return self._hash
@@ -83,7 +83,7 @@ class Version:
8383
:ivar Optional[Dict[str, Union[int, VersionAlphanumericType]]] __alphanum: The alphanumeric typing of the version.
8484
"""
8585

86-
__slots__ = ("_major", "_minor", "_patch", "__version", "__alphanum")
86+
__slots__ = ("_major", "_minor", "_patch", "_authors", "__version", "__alphanum")
8787

8888
def __init__(self, **kwargs) -> None:
8989
"""

0 commit comments

Comments
 (0)