Skip to content

Commit 3029138

Browse files
committed
[OMCPath] add warning message for Python < 3.12
1 parent 43288dc commit 3029138

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

OMPython/OMCSession.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -414,6 +414,12 @@ def size(self) -> int:
414414

415415

416416
if sys.version_info < (3, 12):
417+
warnings.warn(
418+
message="Python < 3.12 - using a limited compatibility class as OMCPath replacement.",
419+
category=DeprecationWarning,
420+
stacklevel=1,
421+
)
422+
417423
class OMCPathCompatibility(pathlib.Path):
418424

419425
def size(self) -> int:

0 commit comments

Comments
 (0)