We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1684ef2 commit d6eeb29Copy full SHA for d6eeb29
trl/__init__.py
@@ -12,12 +12,26 @@
12
# See the License for the specific language governing permissions and
13
# limitations under the License.
14
15
+import sys
16
+import warnings
17
from importlib.metadata import PackageNotFoundError, version
18
from typing import TYPE_CHECKING
19
20
from .import_utils import _LazyModule
21
22
23
+if sys.version_info[:2] == (3, 9):
24
+ warnings.warn(
25
+ (
26
+ "Support for Python 3.9 will be dropped in the next release "
27
+ "(after its end-of-life on October 31, 2025). "
28
+ "Please upgrade to Python 3.10 or newer."
29
+ ),
30
+ category=FutureWarning,
31
+ stacklevel=2,
32
+ )
33
+
34
35
try:
36
__version__ = version("trl")
37
except PackageNotFoundError:
0 commit comments