We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ab8e5b5 + 3ae1f2a commit 0c78234Copy full SHA for 0c78234
.github/workflows/python-package.yml
@@ -4,6 +4,7 @@
4
name: Test the Python package
5
6
on:
7
+ workflow_dispatch:
8
push:
9
branches: [ master ]
10
pull_request:
nameparser/parser.py
@@ -141,6 +141,9 @@ def __unicode__(self):
141
return self.collapse_whitespace(_s).strip(', ')
142
return " ".join(self)
143
144
+ def __hash__(self):
145
+ return hash(str(self))
146
+
147
def __str__(self):
148
if sys.version_info[0] >= 3:
149
return self.__unicode__()
0 commit comments