MCPcopy
hub / github.com/HIT-SCIR/ltp / to_tuple

Method to_tuple

python/interface/ltp/generic.py:101–103  ·  view source on GitHub ↗

Convert self to a tuple containing all the attributes/keys that are not `None`.

(self)

Source from the content-addressed store, hash-verified

99 super().__setattr__(key, value)
100
101 def to_tuple(self) -> Tuple[Any]:
102 """Convert self to a tuple containing all the attributes/keys that are not `None`."""
103 return tuple(self[k] for k in self.keys())
104
105
106@dataclass

Callers 5

__getitem__Method · 0.95
pipelineMethod · 0.80
mainFunction · 0.80
pipelineMethod · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected