Datasets:

ArXiv:
Elron commited on
Commit
6f12331
1 Parent(s): 2421379

Upload artifact.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. artifact.py +2 -2
artifact.py CHANGED
@@ -134,8 +134,8 @@ class Artifact(Dataclass):
134
 
135
  if cls.is_registered_type(snake_case_key):
136
  assert (
137
- cls._class_register[snake_case_key] == artifact_class
138
- ), f"Artifact class name must be unique, '{snake_case_key}' already exists for '{cls._class_register[snake_case_key]}'"
139
 
140
  return snake_case_key
141
 
 
134
 
135
  if cls.is_registered_type(snake_case_key):
136
  assert (
137
+ str(cls._class_register[snake_case_key]) == str(artifact_class)
138
+ ), f"Artifact class name must be unique, '{snake_case_key}' already exists for {cls._class_register[snake_case_key]}. Cannot be overriden by {artifact_class}."
139
 
140
  return snake_case_key
141