From fcdbca0f14f016424f28fa8154c0fc1423c1eb6f Mon Sep 17 00:00:00 2001 From: Michael Warkentin Date: Wed, 15 Mar 2023 15:31:10 -0400 Subject: [PATCH] import typing_extensions for compatibility with hosts on python <3.8 https://github.com/saltstack/salt/issues/59942 https://github.com/saltstack/salt/pull/62234 confirmed working from my mac to both deb10 (snuba-transactions-tiger) and deb11 (access-logs) targets --- salt/utils/thin.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/salt/utils/thin.py b/salt/utils/thin.py index 94ef34060005..62f333beb35d 100644 --- a/salt/utils/thin.py +++ b/salt/utils/thin.py @@ -33,6 +33,7 @@ has_immutables = False try: import immutables + import typing_extensions has_immutables = True except ImportError: @@ -435,6 +436,7 @@ def get_tops(extra_mods="", so_mods=""): mods.append(contextvars) if has_immutables: mods.append(immutables) + mods.append(typing_extensions) for mod in mods: if mod: log.debug('Adding module to the tops: "%s"', mod.__name__)