utilitz 0.7.3__tar.gz → 0.7.4__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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: utilitz
3
- Version: 0.7.3
3
+ Version: 0.7.4
4
4
  Summary: Simple Python utility functions to save and load data
5
5
  Project-URL: Homepage, https://github.com/artitzco/utilitz
6
6
  Project-URL: Issues, https://github.com/artitzco/utilitz/issues
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
4
4
 
5
5
  [project]
6
6
  name = "utilitz"
7
- version = "0.7.3"
7
+ version = "0.7.4"
8
8
  authors = [
9
9
  { name = "Artitzco", email = "artitzco@proton.me" },
10
10
  ]
@@ -399,11 +399,9 @@ class Date(Pattern):
399
399
  else:
400
400
  month = self._month_map[month_raw.lower()]
401
401
 
402
- value = {'year': year, 'month': month, 'day': day}
403
-
404
402
  if to_dict:
405
- return {self.name: value}
406
- return tuple(value.values())
403
+ return {self.name: f'{year:02d}-{month:02d}-{day:02d}'}
404
+ return f'{year:02d}-{month:02d}-{day:02d}'
407
405
 
408
406
  def __repr__(self):
409
407
  return f"Date({self.__str__()})"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes