facebookresearch / facebookresearch/fairseq2
Check end-of-life version of deprecated features
Open
enhancement
infra
- Dominant language
- Python
- Stars
- 1.1k
- Forks
- 144
- Avg merge
- 4d 1h
- Merged PRs (30d)
- 1
Description
Extend `_warn_deprecated` with a mandatory `version` parameter and raise an `InternalError` if the current fairseq2 version is at or above the specified version.
```python
from packaging.Version
def _warn_deprecated(msg: str, eol_version: Version) -> None:
if fairseq2.__version__ >= eol_version:
raise InternalError("Deprecated feature not removed at or after end-of-life version")
```
Contributor guide
Assessment
This issue has not been assessed yet.