datedict 0.1.4__tar.gz → 0.1.5__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of datedict might be problematic. Click here for more details.

@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: datedict
3
- Version: 0.1.4
3
+ Version: 0.1.5
4
4
  Summary: DateDict and YearDict: date-aware dictionary structures
5
5
  Project-URL: Homepage, https://gitlab.com/grisus/datedict
6
6
  Project-URL: Issues, https://gitlab.com/grisus/datedict/-/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "datedict"
7
- version = "0.1.4"
7
+ version = "0.1.5"
8
8
  description = "DateDict and YearDict: date-aware dictionary structures"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.10"
@@ -7,8 +7,6 @@ from .common import NAN, ONE, Decimable, to_decimal, ZERO
7
7
 
8
8
  class DateDict:
9
9
  def __init__(self, data: Mapping[str, Decimable] = dict(), strict: bool = True):
10
- if not data:
11
- raise ValueError("Data cannot be empty.")
12
10
  dates = sorted(data.keys())
13
11
  if strict:
14
12
  # enforce contiguous coverage
@@ -6,8 +6,6 @@ from .common import NAN, ONE, Decimable, to_decimal, ZERO
6
6
 
7
7
  class YearDict:
8
8
  def __init__(self, data: Mapping[int, Decimable] = dict(), strict: bool = True):
9
- if not data:
10
- raise ValueError("Data cannot be empty.")
11
9
  years = sorted(data.keys())
12
10
  if strict:
13
11
  # enforce contiguous coverage
File without changes
File without changes
File without changes
File without changes
File without changes