Skip to content

Commit fa1f3e4

Browse files
authored
fix import of warnings.warn (#6840)
* fix import of warnings.warn never part of the traitlets API * remove yanked codecov
1 parent 64e7c06 commit fa1f3e4

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

.github/workflows/docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
${{ runner.os }}-pip-
3838
- name: Install the Python dependencies
3939
run: |
40-
pip install -e .[test] codecov
40+
pip install -e .[test]
4141
pip install -r docs/doc-requirements.txt
4242
wget https://github.com/jgm/pandoc/releases/download/1.19.1/pandoc-1.19.1-1-amd64.deb && sudo dpkg -i pandoc-1.19.1-1-amd64.deb
4343
- name: List installed packages

.github/workflows/python.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
${{ runner.os }}-pip-
3838
- name: Install the Python dependencies
3939
run: |
40-
pip install -e .[test] codecov
40+
pip install -e .[test]
4141
- name: List installed packages
4242
run: |
4343
pip freeze
@@ -48,6 +48,3 @@ jobs:
4848
- name: Run Integration Tests
4949
run: |
5050
pytest -v notebook/tests/test_notebookapp_integration.py --integration_tests
51-
- name: Coverage
52-
run: |
53-
codecov

notebook/traittypes.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import inspect
2-
from traitlets import ClassBasedTraitType, Undefined, warn
2+
from warnings import warn
3+
from traitlets import ClassBasedTraitType, Undefined
34

45
# Traitlet's 5.x includes a set of utilities for building
56
# description strings for objects. Traitlets 5.x does not

0 commit comments

Comments
 (0)