Skip to content

Commit 2ab924b

Browse files
mypy type stubs
1 parent 649ba69 commit 2ab924b

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.github/workflows/ci.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,12 @@ jobs:
2121
pip install --no-cache-dir -r requirements/requirements.txt
2222
pip install --no-cache-dir -r requirements/requirements-extra.txt
2323
pip install --no-cache-dir -r requirements/requirements-dev.txt
24+
pip install --no-cache-dir -r requirements/requirements-types.txt
2425
- name: black linter
2526
run: |
2627
black . --check
2728
- name: mypy checker
2829
run: |
29-
mypy --install-types
3030
mypy tensorcircuit
3131
- name: pylint checker
3232
run: |

.github/workflows/nightly_release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
pip install --no-cache-dir -r requirements/requirements.txt
2626
pip install --no-cache-dir -r requirements/requirements-extra.txt
2727
pip install --no-cache-dir -r requirements/requirements-dev.txt
28+
pip install --no-cache-dir -r requirements/requirements-types.txt
2829
pip install requests
2930
- name: black linter
3031
run: |
3132
black . --check
3233
- name: mypy checker
3334
run: |
34-
mypy --install-types
3535
mypy tensorcircuit
3636
- name: pylint checker
3737
run: |

requirements/requirements-types.txt

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
types-urllib3
2+
types-typed-ast
3+
types-toml
4+
types-setuptools
5+
types-requests
6+
types-pytz
7+
types-protobuf
8+
types-docutils

0 commit comments

Comments
 (0)