From 8bbc1a15153250cfc94ad3fc4af48b336faa5dad Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 26 Jan 2026 14:29:04 +0100 Subject: [PATCH] loader: Restore compatibility with Python 3.8 --- direct/src/showbase/Loader.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/direct/src/showbase/Loader.py b/direct/src/showbase/Loader.py index bb106577c2..9381c8f4e7 100644 --- a/direct/src/showbase/Loader.py +++ b/direct/src/showbase/Loader.py @@ -36,8 +36,8 @@ import os from typing import Any, Callable, Iterable, Union # Type aliases for loadModel, loadSound, etc. annotations -_ModelPath = Union[str, Filename, os.PathLike[str]] -_SoundPath = Union[str, Filename, os.PathLike[str], MovieAudio] +_ModelPath = Union[str, Filename, os.PathLike] +_SoundPath = Union[str, Filename, os.PathLike, MovieAudio] # You can specify a phaseChecker callback to check # a modelPath to see if it is being loaded in the correct