Skip to content

Commit 73e5322

Browse files
authored
Merge branch 'main' into ai-findings-autofix/tna_utilities-datetime.py
2 parents 7a9e6ad + 6ea0b47 commit 73e5322

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1919
- Updated `CspGenerator.get_csp()` method to `CspGenerator.to_string()`
2020
- Moved the simplification step of generating a CSP string to the `to_string()` method
2121
- By default, disallow `frame-ancestors` and `child-src` in CSP
22+
- `datetime.group_by_year_and_month` now accepts a list of items rather than a dict that requires an `items` key
2223

2324
### Deprecated
2425

tna_utilities/security.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ class CspGenerator:
3030
def __init__(
3131
self,
3232
default_src: str | list[str] | None = None,
33-
allow_objects=False,
34-
allow_iframe_embedding=False,
35-
allow_children=False,
33+
allow_objects: bool = False,
34+
allow_iframe_embedding: bool = False,
35+
allow_children: bool = False,
3636
) -> None:
3737
self.default_src_sources: list[str] = []
3838
if default_src:

0 commit comments

Comments
 (0)