Datasets:

ArXiv:
Elron commited on
Commit
8e6ec01
1 Parent(s): 0106086

Upload instructions.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. instructions.py +3 -5
instructions.py CHANGED
@@ -1,7 +1,8 @@
1
- from abc import ABC, abstractmethod
2
  from typing import Dict
3
 
4
  from .artifact import Artifact
 
5
 
6
 
7
  class Instruction(Artifact):
@@ -20,9 +21,6 @@ class TextualInstruction(Instruction):
20
  return self.text
21
 
22
 
23
- from .collections import ListCollection
24
-
25
-
26
  class InstructionsList(ListCollection):
27
  def verify(self):
28
  for instruction in self.items:
@@ -31,5 +29,5 @@ class InstructionsList(ListCollection):
31
 
32
  class InstructionsDict(Dict):
33
  def verify(self):
34
- for key, instruction in self.items():
35
  assert isinstance(instruction, Instruction)
 
1
+ from abc import abstractmethod
2
  from typing import Dict
3
 
4
  from .artifact import Artifact
5
+ from .collections import ListCollection
6
 
7
 
8
  class Instruction(Artifact):
 
21
  return self.text
22
 
23
 
 
 
 
24
  class InstructionsList(ListCollection):
25
  def verify(self):
26
  for instruction in self.items:
 
29
 
30
  class InstructionsDict(Dict):
31
  def verify(self):
32
+ for _key, instruction in self.items():
33
  assert isinstance(instruction, Instruction)