We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 65cf315 commit 783a338Copy full SHA for 783a338
1 file changed
cachecontrol/caches/file_cache.py
@@ -6,7 +6,8 @@
6
import hashlib
7
import os
8
from textwrap import dedent
9
-from typing import IO, TYPE_CHECKING
+from typing import IO, TYPE_CHECKING, Union
10
+from pathlib import Path
11
12
from cachecontrol.cache import BaseCache, SeparateBodyBaseCache
13
from cachecontrol.controller import CacheController
@@ -63,7 +64,7 @@ class _FileCacheMixin:
63
64
65
def __init__(
66
self,
- directory: str,
67
+ directory: Union[str, Path],
68
forever: bool = False,
69
filemode: int = 0o0600,
70
dirmode: int = 0o0700,
0 commit comments