File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -491,7 +491,7 @@ def to_bool(value: Optional[Any]) -> Optional[bool]:
491
491
raise ValueError (f'Invalid boolean value { value } .' )
492
492
493
493
494
- def translate_glob_to_regex (pattern : Optional [str ]) -> Optional [re .Pattern [ str ] ]:
494
+ def translate_glob_to_regex (pattern : Optional [str ]) -> Optional [re .Pattern ]:
495
495
"""Translate glob string pattern to regex Pattern.
496
496
497
497
:param pattern: glob pattern
@@ -504,7 +504,7 @@ def translate_glob_to_regex(pattern: Optional[str]) -> Optional[re.Pattern[str]]
504
504
return re .compile (fnmatch .translate (pattern ))
505
505
506
506
507
- def match_pattern (pattern : Optional [re .Pattern [ str ] ], line : Optional [str ]) -> bool :
507
+ def match_pattern (pattern : Optional [re .Pattern ], line : Optional [str ]) -> bool :
508
508
"""Check if the line matches given glob pattern.
509
509
510
510
:param pattern: glob pattern
You can’t perform that action at this time.
0 commit comments