Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pytools
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Klöckner
pytools
Commits
983f9f10
Commit
983f9f10
authored
3 years ago
by
Andreas Klöckner
Committed by
Andreas Klöckner
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Fix misunderstanding in Tag.update_persistent_hash: __qualname__ does not contain module name
parent
401dfd6b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#168513
passed
3 years ago
Stage: test
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pytools/tag.py
+2
-1
2 additions, 1 deletion
pytools/tag.py
with
2 additions
and
1 deletion
pytools/tag.py
+
2
−
1
View file @
983f9f10
...
@@ -127,7 +127,8 @@ class Tag:
...
@@ -127,7 +127,8 @@ class Tag:
return
DottedName
.
from_class
(
type
(
self
))
return
DottedName
.
from_class
(
type
(
self
))
def
update_persistent_hash
(
self
,
key_hash
,
key_builder
):
def
update_persistent_hash
(
self
,
key_hash
,
key_builder
):
key_builder
.
rec
(
key_hash
,
self
.
__class__
.
__qualname__
)
key_builder
.
rec
(
key_hash
,
(
self
.
__class__
.
__module__
,
self
.
__class__
.
__qualname__
))
from
dataclasses
import
fields
from
dataclasses
import
fields
# Fields are ordered consistently, so ordered hashing is OK.
# Fields are ordered consistently, so ordered hashing is OK.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment