| Conditions | 1 |
| Total Lines | 6 |
| Code Lines | 2 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | """Voikko analyzer for Annif, based on libvoikko library.""" |
||
| 24 | def __getstate__(self) -> dict[str, str | None]: |
||
| 25 | """Return the state of the object for pickling purposes. The Voikko |
||
| 26 | instance is set to None because as a ctypes object it cannot be |
||
| 27 | pickled.""" |
||
| 28 | |||
| 29 | return {"param": self.param, "voikko": None} |
||
| 30 | |||
| 41 |