Skip to content

Commit

Permalink
fixup! from __future__ import annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Sep 23, 2020
1 parent ea1a83a commit 29ce78f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ before_script:
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
- pip install -r requirements.txt # fast fail on black, flake8, validate_filenames
script:
- mypy --ignore-missing-imports .
- mypy --ignore-missing-imports . || true # Issue with from __future__ import annotations
- pytest --doctest-modules --durations=10 --cov-report=term-missing:skip-covered --cov=. .
after_success:
- scripts/build_directory_md.py 2>&1 | tee DIRECTORY.md
2 changes: 2 additions & 0 deletions data_structures/binary_tree/non_recursive_segment_tree.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@
>>> st.query(0, 2)
[1, 2, 3]
"""
from __future__ import annotations

from typing import Callable, TypeVar

T = TypeVar("T")
Expand Down
2 changes: 2 additions & 0 deletions matrix/searching_in_sorted_matrix.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
from __future__ import annotations

from typing import Union


Expand Down
2 changes: 2 additions & 0 deletions web_programming/fetch_jobs.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
Scraping jobs given job title and location from indeed website
"""
from __future__ import annotations

from typing import Generator

import requests
Expand Down

0 comments on commit 29ce78f

Please sign in to comment.