Skip to content

Commit

Permalink
fix(generate_shaders_gl): Replace new union expression with old syntax
Browse files Browse the repository at this point in the history
This makes it compatible with Python 3.9 (default on macOS).
  • Loading branch information
Holzhaus committed Dec 22, 2024
1 parent a71baef commit 30a92a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rendergraph/tools/generate_shaders_gl.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@


def find_executable(
executable_name: str, additional_paths: list[str] | None = None
executable_name: str, additional_paths: typing.Optional[list[str]] = None
) -> pathlib.Path:
"""Find an executable by name in $PATH and in the additional paths."""
if executable_path := shutil.which(executable_name):
Expand Down Expand Up @@ -102,7 +102,7 @@ def get_paths(paths: list[pathlib.Path]) -> typing.Iterator[pathlib.Path]:
yield path


def main(argv: list[str] | None = None) -> int:
def main(argv: typing.Optional[list[str]] = None) -> int:
logging.basicConfig(level=logging.DEBUG, format="%(message)s")

logger = logging.getLogger(__name__)
Expand Down

0 comments on commit 30a92a4

Please sign in to comment.