Fix Pipe.labels

This commit is contained in:
Matthew Honnibal 2020-09-29 16:55:07 +02:00
parent 4ad26f4a2f
commit e4f535a964

View File

@ -35,10 +35,7 @@ cdef class Pipe:
@property @property
def labels(self) -> Optional[Tuple[str]]: def labels(self) -> Optional[Tuple[str]]:
if "labels" in self.cfg: return []
return tuple(self.cfg["labels"])
else:
return None
@property @property
def label_data(self): def label_data(self):