File tree 1 file changed +2
-3
lines changed
1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 2
2
import os
3
3
import pickle
4
4
import threading
5
- from collections .abc import Mapping
6
5
from dataclasses import dataclass , replace
7
6
from datetime import datetime , timedelta
8
7
from typing import Any , Optional , Union
@@ -65,7 +64,7 @@ def _update_with_defaults(
65
64
return param
66
65
67
66
68
- def set_default_params (** params : Mapping ) -> None :
67
+ def set_default_params (** params : Any ) -> None :
69
68
"""Configure default parameters applicable to all memoized functions."""
70
69
# It is kept for backwards compatibility with desperation warning
71
70
import warnings
@@ -79,7 +78,7 @@ def set_default_params(**params: Mapping) -> None:
79
78
set_global_params (** params )
80
79
81
80
82
- def set_global_params (** params : Mapping ) -> None :
81
+ def set_global_params (** params : Any ) -> None :
83
82
"""Configure global parameters applicable to all memoized functions.
84
83
85
84
This function takes the same keyword parameters as the ones defined in the
You can’t perform that action at this time.
0 commit comments