Skip to content

Commit e010027

Browse files
committed
Improve the typing check
1 parent a02286e commit e010027

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

.github/workflows/python-package.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ jobs:
2727
- name: Install dependencies
2828
run: |
2929
python -m pip install --upgrade pip
30+
# install typeshed
31+
python -m pip install types-html5lib types-requests
3032
python -m pip install flake8 pytest
3133
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
3234

ihook/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
import sys
77
import inspect
88

9+
if typing.TYPE_CHECKING:
10+
from _typeshed.importlib import LoaderProtocol
11+
912
# todo: unit tests to improve custom loader
1013

1114
__all__ = [

0 commit comments

Comments
 (0)