File tree 3 files changed +12
-6
lines changed
3 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -4,15 +4,21 @@ All notable changes to this project will be documented in this file.
4
4
The format is based on [ Keep a Changelog] ( https://keepachangelog.com/en/1.0.0/ ) ,
5
5
and this project adheres to [ Semantic Versioning] ( https://semver.org/spec/v2.0.0.html ) .
6
6
7
+ ## [ 0.0.13] - 2024-03-06
8
+
9
+ ### Fixed
10
+
11
+ - ` _typer ` with kwargs to other functions.
12
+
7
13
## [ 0.0.12] - 2024-03-06
8
14
9
15
### Added
10
16
11
- - ` _typer ` supports custom
17
+ - ` _typer ` supports custom types.
12
18
13
19
### Changed
14
20
15
- - ` zonal_stats ` outputs only valid geometries. Set ` True `
21
+ - ` zonal_stats ` outputs only valid geometries. Set ` True ` .
16
22
to ` raise_missing_geometry ` to have the old behavior.
17
23
- ` zonal_stats ` with geocube now manages ` all_touched ` .
18
24
Original file line number Diff line number Diff line change 5
5
# to hide warnings from rioxarray or nano seconds conversion
6
6
warnings .filterwarnings ("ignore" )
7
7
8
- __version__ = "0.0.12 "
8
+ __version__ = "0.0.13 "
Original file line number Diff line number Diff line change @@ -53,7 +53,7 @@ def force(*args, **kwargs):
53
53
val = vals [0 ]
54
54
idx = func .__code__ .co_varnames .index (key )
55
55
is_kwargs = key in kwargs .keys ()
56
- if not is_kwargs and idx > len (_args ):
56
+ if not is_kwargs and idx >= len (_args ):
57
57
break
58
58
value = kwargs .get (key , None ) if is_kwargs else args [idx ]
59
59
if type (value ) in vals :
@@ -79,10 +79,10 @@ def force(*args, **kwargs):
79
79
_args [idx ] = res
80
80
elif is_kwargs :
81
81
kwargs [key ] = (
82
- var (kwargs [key ]) if var is not list else [kwargs [key ]]
82
+ val (kwargs [key ]) if val is not list else [kwargs [key ]]
83
83
)
84
84
else :
85
- _args [idx ] = var (args [idx ]) if var is not list else [args [idx ]]
85
+ _args [idx ] = val (args [idx ]) if val is not list else [args [idx ]]
86
86
args = tuple (_args )
87
87
return func (* args , ** kwargs )
88
88
You can’t perform that action at this time.
0 commit comments