From e3a16f4fd58d7dd948ba68c81d50a26158aa7838 Mon Sep 17 00:00:00 2001 From: Konano Date: Fri, 22 Nov 2024 18:17:09 +0800 Subject: [PATCH] fix(polls): prevent dynamic changes to `poll_params` --- mastodon/polls.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mastodon/polls.py b/mastodon/polls.py index 20a1d87..013dfe9 100644 --- a/mastodon/polls.py +++ b/mastodon/polls.py @@ -56,6 +56,6 @@ class Mastodon(Internals): Set multiple to True to allow people to choose more than one answer. Set hide_totals to True to hide the results of the poll until it has expired. """ - poll_params = locals() + poll_params = locals().copy() del poll_params["self"] return poll_params