Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document and clean core/artifact.py #478

Merged
merged 4 commits into from
Jul 20, 2023
Merged

Document and clean core/artifact.py #478

merged 4 commits into from
Jul 20, 2023

Conversation

rec
Copy link
Contributor

@rec rec commented Jul 20, 2023

@rec rec requested review from blythed and thejumpman2323 July 20, 2023 12:36
@@ -146,52 +51,67 @@ def __init__(
self.sha1 = sha1

def __hash__(self):
try:
if isinstance(self.artifact, list):
return hash(str(self.artifact[:100]))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

magic number?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, that was already in there unfortunately. I thought I added a comment complaining, I WILL!

from .artifact import Artifact


def put_artifacts_back(d, lookup, artifact_store: t.Optional[ArtifactStore] = None):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick:
a return typehint :)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All of these need typehints, I have a separate branch already in progress for this...

@@ -36,8 +36,8 @@
# to the rest of the code.
# It should be moved to the Server's initialization code where it can be available to
# all threads.
from ...core.artifact import (
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

much needed!

@rec rec merged commit 090fd57 into superduper-io:main Jul 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants