From 6bec034ec217aa83f9b2704c1f79e61094a81bc3 Mon Sep 17 00:00:00 2001 From: Benjamin Slack <51135149+slackba@users.noreply.github.com> Date: Thu, 4 Jan 2024 13:24:27 -0500 Subject: [PATCH] #comment typing annotation breaks Python 2 compatibility We pull `shotgun_api3` directly for deployment here at TTF. We have some old shows still using Maya2019 (and thereby Python 2). This addition of hinting annotations breaks import of your packages. If it's intentional, and you are dropping Py2 support, then disregard this PR. In that case, we'll have to lock our release for our Py2 deployments (while we have them). --- shotgun_api3/shotgun.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/shotgun_api3/shotgun.py b/shotgun_api3/shotgun.py index 9626056d2..200717088 100644 --- a/shotgun_api3/shotgun.py +++ b/shotgun_api3/shotgun.py @@ -3273,7 +3273,8 @@ def user_subscriptions_read(self): return self._call_rpc("user_subscriptions_read", None) - def user_subscriptions_create(self, users: list): + def user_subscriptions_create(self, users): + # type: (list[dict[str, Union[str, list[str], None]) -> bool """ Assign subscriptions to users.