Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
payno
workflow_concepts
Commits
42fc7c80
Commit
42fc7c80
authored
Jun 11, 2021
by
Wout De Nolf
Browse files
fixup
parent
ff3df11d
Changes
1
Hide whitespace changes
Inline
Side-by-side
esrftaskgraph/esrftaskgraph/hashing.py
View file @
42fc7c80
...
...
@@ -118,10 +118,12 @@ class UniversalHashable:
self
.
__instance_nonce
=
uhash_nonce
self
.
__original__instance_nonce
=
uhash_nonce
def
__init_subclass__
(
cls
,
version
=
None
,
**
kwargs
):
def
__init_subclass__
(
sub
cls
,
version
=
None
,
**
kwargs
):
super
().
__init_subclass__
(
**
kwargs
)
cls
.
__VERSION
=
version
cls
.
__CLASS_NONCE
=
str
(
uhash
((
cls
.
class_nonce
(),
)
+
cls
.
class_nonce_data
()))
supercls_data
=
subcls
.
class_nonce
()
subcls
.
__VERSION
=
version
subcls_data
=
subcls
.
class_nonce_data
()
subcls
.
__CLASS_NONCE
=
str
(
uhash
((
subcls_data
,
supercls_data
)))
@
classmethod
def
class_nonce
(
cls
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment