Skip to content

Commit 4c62cee

Browse files
committed
Fix type annotation
1 parent f906fb8 commit 4c62cee

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/cachier/config.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import os
33
import pickle
44
import threading
5-
from collections.abc import Mapping
65
from dataclasses import dataclass, replace
76
from datetime import datetime, timedelta
87
from typing import Any, Optional, Union
@@ -65,7 +64,7 @@ def _update_with_defaults(
6564
return param
6665

6766

68-
def set_default_params(**params: Mapping) -> None:
67+
def set_default_params(**params: Any) -> None:
6968
"""Configure default parameters applicable to all memoized functions."""
7069
# It is kept for backwards compatibility with desperation warning
7170
import warnings
@@ -79,7 +78,7 @@ def set_default_params(**params: Mapping) -> None:
7978
set_global_params(**params)
8079

8180

82-
def set_global_params(**params: Mapping) -> None:
81+
def set_global_params(**params: Any) -> None:
8382
"""Configure global parameters applicable to all memoized functions.
8483
8584
This function takes the same keyword parameters as the ones defined in the

0 commit comments

Comments
 (0)