Skip to content

Commit 059b27a

Browse files
committed
Fixed an issue when running on Python 3.6. #58
1 parent 385ba8d commit 059b27a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

mkdocs_with_pdf/generator.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import logging
22
import os
33
import re
4+
from typing import Pattern
45
from importlib import import_module
56
from importlib.util import module_from_spec, spec_from_file_location
67

@@ -34,7 +35,7 @@ def __init__(self, options: Options):
3435
self._scraped_scripts = []
3536
self._mixed_script = ''
3637

37-
def to_pattern(s: str) -> re.Pattern:
38+
def to_pattern(s: str) -> Pattern:
3839
if s.startswith('^'):
3940
return re.compile(s)
4041
return re.compile(f'^{s}')

0 commit comments

Comments
 (0)