Skip to content

Commit 55fafeb

Browse files
authored
Installed tests without pyyaml and remove deprecation warning (#742)
1 parent 0bd3ac1 commit 55fafeb

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/tests.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,20 +26,20 @@ jobs:
2626
with:
2727
python-version: ${{ matrix.python }}
2828
cache: pip
29-
- name: without optional dependencies and without pyyaml
29+
- name: Test without optional dependencies and without pyyaml
3030
run: |
3131
pip install .[coverage]
3232
pip uninstall -y pyyaml types-PyYAML
3333
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
3434
mv coverage.xml coverage_py${{ matrix.python }}_bare.xml
3535
mv junit.xml junit_py${{ matrix.python }}_bare.xml
36-
- name: with all optional dependencies
36+
- name: Test with all optional dependencies
3737
run: |
3838
pip install .[test,all]
3939
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
4040
mv coverage.xml coverage_py${{ matrix.python }}_all.xml
4141
mv junit.xml junit_py${{ matrix.python }}_all.xml
42-
- name: without future annotations
42+
- name: Test without future annotations
4343
run: |
4444
sed -i '/^from __future__ import annotations$/d' jsonargparse_tests/test_*.py
4545
pytest --cov --cov-report=term --cov-report=xml --junit-xml=junit.xml
@@ -157,10 +157,11 @@ jobs:
157157
with:
158158
name: package
159159
path: dist
160-
- name: Test without optional dependencies
160+
- name: Test without optional dependencies and without pyyaml
161161
run: |
162162
cd dist
163163
pip install $(ls *.whl)[test-no-urls]
164+
pip uninstall -y pyyaml
164165
python -m jsonargparse_tests
165166
- name: Test with all optional dependencies
166167
run: |

jsonargparse/_stubs_resolver.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ def ast_annassign_to_assign(node: ast.AnnAssign) -> ast.Assign:
5050
return ast.Assign(
5151
targets=[node.target],
5252
value=node.value, # type: ignore[arg-type]
53-
type_ignores=[], # type: ignore[call-arg]
5453
lineno=node.lineno,
5554
end_lineno=node.lineno,
5655
)

0 commit comments

Comments
 (0)