Skip to content

Commit 8b8592e

Browse files
Update sub-packages/bionemo-llm/src/bionemo/llm/utils/callbacks.py
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Signed-off-by: John St. John <jstjohn@users.noreply.github.com>
1 parent e26c8fc commit 8b8592e

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

sub-packages/bionemo-llm/src/bionemo/llm/utils/callbacks.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,11 @@
1616

1717
import logging
1818
import os
19-
from typing import Any, Literal, Sequence, override
19+
from typing import Any, Literal, Sequence
20+
try: # Python 3.12+
21+
from typing import override
22+
except ImportError: # Python < 3.12
23+
from typing_extensions import override
2024

2125
import lightning.pytorch as pl
2226
import torch

0 commit comments

Comments
 (0)