Skip to content

Commit

Permalink
Run mypy with python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tristanlatr committed Mar 28, 2024
1 parent d929bf1 commit ad6bd21
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/static.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
python-version: '3.12'

- name: Install tox
run: |
Expand Down
5 changes: 1 addition & 4 deletions pydoctor/templatewriter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@ def runtime_checkable(f):

# Newer APIs from importlib_resources should arrive to stdlib importlib.resources in Python 3.9.
if TYPE_CHECKING:
if sys.version_info >= (3, 9):
from importlib.resources.abc import Traversable
else:
Traversable = Any
from importlib.resources.abc import Traversable
else:
Traversable = object

Expand Down

0 comments on commit ad6bd21

Please sign in to comment.