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 385ba8d commit 059b27aCopy full SHA for 059b27a
mkdocs_with_pdf/generator.py
@@ -1,6 +1,7 @@
1
import logging
2
import os
3
import re
4
+from typing import Pattern
5
from importlib import import_module
6
from importlib.util import module_from_spec, spec_from_file_location
7
@@ -34,7 +35,7 @@ def __init__(self, options: Options):
34
35
self._scraped_scripts = []
36
self._mixed_script = ''
37
- def to_pattern(s: str) -> re.Pattern:
38
+ def to_pattern(s: str) -> Pattern:
39
if s.startswith('^'):
40
return re.compile(s)
41
return re.compile(f'^{s}')
0 commit comments