log21 3.0.0__tar.gz → 3.0.1__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.3
2
2
  Name: log21
3
- Version: 3.0.0
3
+ Version: 3.0.1
4
4
  Summary: A simple logging package
5
5
  Keywords: python,log,colorize,color,logging,Python3,CodeWriter21
6
6
  Author: CodeWriter21(Mehrad Pooryoussof)
@@ -94,12 +94,22 @@ pip install git+https://github.com/MPCodeWriter21/log21
94
94
  Changelog
95
95
  ---------
96
96
 
97
- ### v3.0.0
97
+ ### v3.0.1
98
98
 
99
- This release introduces a cleaned-up internal structure, stricter naming conventions,
100
- and several quality-of-life improvements. While most users will not notice behavioral
101
- changes, **v3 contains breaking changes for code that relies on internal imports or
102
- specific exception names**.
99
+ Fix the issue with `argumentify` which would result in falsy default values to be
100
+ replaced with None.
101
+
102
+ + Example:
103
+
104
+ ```python
105
+ def main(offset: int = 0) -> None:
106
+ ...
107
+
108
+ argumentify(main)
109
+ ```
110
+
111
+ if no value is provided for `--offset`, the default will be `None` instead of `0` which
112
+ is unexpected and can lead to issues.
103
113
 
104
114
  #### Breaking Changes
105
115
 
@@ -69,12 +69,22 @@ pip install git+https://github.com/MPCodeWriter21/log21
69
69
  Changelog
70
70
  ---------
71
71
 
72
- ### v3.0.0
72
+ ### v3.0.1
73
73
 
74
- This release introduces a cleaned-up internal structure, stricter naming conventions,
75
- and several quality-of-life improvements. While most users will not notice behavioral
76
- changes, **v3 contains breaking changes for code that relies on internal imports or
77
- specific exception names**.
74
+ Fix the issue with `argumentify` which would result in falsy default values to be
75
+ replaced with None.
76
+
77
+ + Example:
78
+
79
+ ```python
80
+ def main(offset: int = 0) -> None:
81
+ ...
82
+
83
+ argumentify(main)
84
+ ```
85
+
86
+ if no value is provided for `--offset`, the default will be `None` instead of `0` which
87
+ is unexpected and can lead to issues.
78
88
 
79
89
  #### Breaking Changes
80
90
 
@@ -23,7 +23,7 @@ dependencies = [
23
23
  "webcolors",
24
24
  "docstring-parser"
25
25
  ]
26
- version = "3.0.0"
26
+ version = "3.0.1"
27
27
 
28
28
  [build-system]
29
29
  requires = ["uv_build>=0.8.15,<0.9.0"]
@@ -31,7 +31,7 @@ from .stream_handler import StreamHandler, ColorizingStreamHandler
31
31
  # yapf: enable
32
32
 
33
33
  __author__ = 'CodeWriter21 (Mehrad Pooryoussof)'
34
- __version__ = '3.0.0'
34
+ __version__ = '3.0.1'
35
35
  __github__ = 'https://GitHub.com/MPCodeWriter21/log21'
36
36
  __all__ = [
37
37
  'ColorizingStreamHandler', 'DecolorizingFileHandler', 'ColorizingFormatter',
@@ -359,7 +359,7 @@ def _add_arguments(
359
359
  config['required'] = True
360
360
  if argument.kind == _inspect._ParameterKind.VAR_POSITIONAL:
361
361
  config['nargs'] = '*'
362
- if argument.default:
362
+ if argument.default is not None:
363
363
  config['default'] = argument.default
364
364
  parser.add_argument(
365
365
  *generate_flag(argument, reserved_flags=reserved_flags), **config
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
File without changes
File without changes
File without changes
File without changes
File without changes