From e7ab942c77f483041f49923324f6ece935fed36f Mon Sep 17 00:00:00 2001 From: Thomas Colthurst Date: Thu, 28 Mar 2024 11:51:27 -0700 Subject: [PATCH] Keep Bayeux Python3.9 compatible by using Optional[] instead of Type1 | Type2. PiperOrigin-RevId: 620010737 --- bayeux/_src/shared.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bayeux/_src/shared.py b/bayeux/_src/shared.py index 9112e4c..514a80a 100644 --- a/bayeux/_src/shared.py +++ b/bayeux/_src/shared.py @@ -40,7 +40,7 @@ def map_fn(chain_method, fn): def update_with_kwargs( defaults: dict[str, Any], *, - reqd: set[str] | None = None, + reqd: Optional[set[str]] = None, kwargs: dict[str, Any], ): """Updates a defaults dictionary, overwriting keys, but not adding new ones.