Skip to content

Commit a57a4cb

Browse files
authored
Merge pull request #34 from ethyca/update-partition-type
Updating partition type
2 parents 1b5e0c4 + 3d9988d commit a57a4cb

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

CHANGELOG.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,13 @@ The types of changes are:
1616

1717
## [Unreleased](https://github.com/ethyca/fideslang/compare/3.1.0...main)
1818

19+
### Changed
20+
- Updated the type for `CollectionMeta.partitioning` to allow a list of dicts [#34](https://github.com/ethyca/fideslang/pull/34)
1921

2022
## [3.1.0](https://github.com/ethyca/fideslang/compare/3.0.9...3.1.0)
2123

2224
### Deprecated
23-
- Deprecated `Cookies` model and `.cookies` property on `System` and `PrivacyDeclaration` [#199](https://github.com/ethyca/fideslang/pull/27)
25+
- Deprecated `Cookies` model and `.cookies` property on `System` and `PrivacyDeclaration` [#27](https://github.com/ethyca/fideslang/pull/27)
2426

2527

2628
## [3.0.9](https://github.com/ethyca/fideslang/compare/3.0.8...3.0.9)

src/fideslang/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
from datetime import datetime
99
from enum import Enum
10-
from typing import Annotated, Dict, List, Optional, Union, Any
10+
from typing import Annotated, Any, Dict, List, Optional, Union
1111
from warnings import warn
1212

1313
from packaging.version import InvalidVersion, Version
@@ -531,7 +531,7 @@ class CollectionMeta(BaseModel):
531531

532532
# partitioning metadata is kept open-ended as it is an experimental feature -
533533
# more strictly defined metadata structures will be supported in the future
534-
partitioning: Optional[Dict] = None
534+
partitioning: Optional[Union[Dict, List[Dict]]] = None
535535

536536

537537
class DatasetCollection(FidesopsMetaBackwardsCompat):

0 commit comments

Comments
 (0)