Skip to content

Commit

Permalink
fix: fix subscript error for type annotation in Python <=3.8
Browse files Browse the repository at this point in the history
  • Loading branch information
NiklasRosenstein committed Mar 13, 2022
1 parent 49ba21d commit 5d907c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changelog/_unreleased.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[[entries]]
id = "1dab5782-9dc8-4b38-9907-98f64a74c32f"
type = "fix"
description = "fix subscript error for type annotation in Python <=3.8"
author = "@NiklasRosenstein"
2 changes: 1 addition & 1 deletion src/pydoc_markdown/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def load_modules(self) -> t.List[docspec.Module]:

logger.info('Loading modules.')
self.ensure_initialized()
modules: list[docspec.Module] = []
modules: t.List[docspec.Module] = []
for loader in self.loaders:
modules.extend(loader.load())
return modules
Expand Down

0 comments on commit 5d907c1

Please sign in to comment.