From b762e9c8508156c30c67b4a1ed80bba7e3967af5 Mon Sep 17 00:00:00 2001 From: Andreas Backx Date: Sat, 2 Nov 2024 14:39:29 +0000 Subject: [PATCH] Replace | with Union for Python 3.8. --- src/click/decorators.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/click/decorators.py b/src/click/decorators.py index ea1ae1a12..822e34de5 100644 --- a/src/click/decorators.py +++ b/src/click/decorators.py @@ -1,7 +1,7 @@ -from collections import abc import inspect import types import typing as t +from collections import abc from functools import update_wrapper from gettext import gettext as _ @@ -530,7 +530,7 @@ class HelpOption(Option): def __init__( self, - param_decls: abc.Sequence[str] | None = None, + param_decls: t.Optional[abc.Sequence[str]] = None, **kwargs: t.Any, ) -> None: if not param_decls: