Skip to content

Commit 326853a

Browse files
committed
fix: _Hash error on versioning.
1 parent aa9900d commit 326853a

File tree

3 files changed

+22
-10
lines changed

3 files changed

+22
-10
lines changed

docs/ext.rst

Lines changed: 19 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,27 @@
11
.. currentmodule:: interactions
22

3-
SDK Framework
4-
=============
3+
External Framework
4+
==================
55

66
Are you trying to build your own 3rd party library, but you don't want to monkey-patch your own
77
solutions into the current existing library codebase? Are you wanting to avoid having to modify
88
the architecture of the library to specifically suit you or others needs? Well, now we have
99
something to introduce to you: ``interactions.ext``. The officially given software development kit
10-
(SDK) tools suite made by developers, and for developers.
10+
(SDK) tools suite made by developers; for developers.
1111

12-
Currently, this framework is not out quite just yet -- we'll be seeing ourselves writing more
13-
information about this after the launch of version ``4.0.0-beta``. Stay tuned!
12+
How does the framework... work?
13+
*******************************
14+
15+
Great question! We're glad you asked. The framework is a set of tools that are designed to make
16+
your life easier. There are a few tools that we provide out of the box, but you can also create
17+
some of your own. We'll be covering each one of these tools in great detail.
18+
19+
.. toctree::
20+
:maxdepth: 1
21+
:caption: Tools:
22+
23+
ext.gettingstarted.rst
24+
ext.base.rst
25+
ext.converter.rst
26+
ext.error.rst
27+
ext.version.rst

interactions/ext/version.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
from enum import Enum
2-
from hashlib import _Hash as MD5Hash
32
from hashlib import md5
43
from string import ascii_lowercase
54
from typing import List, Optional, Union
@@ -51,11 +50,11 @@ def __init__(
5150
self.email = email
5251
self._hash = md5(self.__str__())
5352

54-
def __hash__(self) -> MD5Hash:
53+
def __hash__(self):
5554
return self._hash
5655

5756
def __str__(self) -> str:
58-
return f"{self.name}{' <' + self.email + '>' if self.email else ''}"
57+
return f'{self.name}{f" <{self.email}>" if self.email else ""}'
5958

6059
@property
6160
def is_co_author(self) -> bool:

interactions/ext/version.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from enum import Enum
22
from typing import Dict, List, Optional, Union
3-
from hashlib import _Hash as MD5Hash
43

54
class VersionAlphanumericType(str, Enum): ...
65

@@ -18,7 +17,7 @@ class VersionAuthor:
1817
active: Optional[bool] = True,
1918
email: Optional[str] = None,
2019
) -> None: ...
21-
def __hash__(self) -> MD5Hash: ...
20+
def __hash__(self): ...
2221
def __str__(self) -> str: ...
2322
@property
2423
def signature(self) -> str: ...

0 commit comments

Comments
 (0)