From 93a9de3063bf0e2359596b4ac855c809e3a0174c Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Mon, 9 Mar 2026 10:15:58 +0000 Subject: [PATCH 1/3] Apply suggested fix to tna_utilities/security.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tna_utilities/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tna_utilities/security.py b/tna_utilities/security.py index 4cc3d0e..8ec7b69 100644 --- a/tna_utilities/security.py +++ b/tna_utilities/security.py @@ -32,7 +32,7 @@ def __init__( default_src: str | list[str] | None = None, allow_objects=False, allow_iframe_embedding=False, - allow_children=False, + allow_children: bool = False, ) -> None: self.default_src_sources: list[str] = [] if default_src: From bfe8355ec254306ebfe137a39f878614f905deb1 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Mon, 9 Mar 2026 10:15:58 +0000 Subject: [PATCH 2/3] Apply suggested fix to tna_utilities/security.py from Copilot Autofix Co-authored-by: Copilot Autofix powered by AI <223894421+github-code-quality[bot]@users.noreply.github.com> --- tna_utilities/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tna_utilities/security.py b/tna_utilities/security.py index 8ec7b69..7ac33da 100644 --- a/tna_utilities/security.py +++ b/tna_utilities/security.py @@ -30,7 +30,7 @@ class CspGenerator: def __init__( self, default_src: str | list[str] | None = None, - allow_objects=False, + allow_objects: bool = False, allow_iframe_embedding=False, allow_children: bool = False, ) -> None: From 93706217aa8cec8d8629f8e106d54ca82bece681 Mon Sep 17 00:00:00 2001 From: Andrew Hosgood Date: Mon, 9 Mar 2026 10:17:01 +0000 Subject: [PATCH 3/3] Fix type hint formatting for allow_iframe_embedding parameter in CspGenerator --- tna_utilities/security.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tna_utilities/security.py b/tna_utilities/security.py index 7ac33da..e862577 100644 --- a/tna_utilities/security.py +++ b/tna_utilities/security.py @@ -31,7 +31,7 @@ def __init__( self, default_src: str | list[str] | None = None, allow_objects: bool = False, - allow_iframe_embedding=False, + allow_iframe_embedding: bool = False, allow_children: bool = False, ) -> None: self.default_src_sources: list[str] = []