Skip to content

Commit

Permalink
fix py37 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
mhils committed May 12, 2021
1 parent 78451f4 commit 1b962c1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pdoc/search.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@
```
in your [`module.html.jinja2` template](../pdoc.html#editing-pdocs-html-template).
"""
from __future__ import annotations

import json
import shutil
import subprocess
Expand Down
2 changes: 2 additions & 0 deletions test/test_doc.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import builtins
import dataclasses
import sys
from pathlib import Path
from unittest.mock import patch

Expand Down Expand Up @@ -88,6 +89,7 @@ def test_builtin_source_file():
assert m.source_file is None


@pytest.mark.skipif(sys.version_info < (3, 9), reason="3.9+ only")
def test_raising_getdoc():
class Foo:
@classmethod
Expand Down

0 comments on commit 1b962c1

Please sign in to comment.