We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a8f63c0 commit 682ca1eCopy full SHA for 682ca1e
1 file changed
Lib/fnmatch.py
@@ -35,7 +35,7 @@ def fnmatch(name, pat):
35
pat = os.path.normcase(pat)
36
return fnmatchcase(name, pat)
37
38
-@functools.lru_cache(maxsize=250)
+@functools.lru_cache(maxsize=250, typed=True)
39
def _compile_pattern(pat):
40
if isinstance(pat, bytes):
41
pat_str = str(pat, 'ISO-8859-1')
0 commit comments