Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ jobs:
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install mypy
- name: Install dependencies
run: |
grep mypy requirements/test.txt | xargs -0 pip install
pip install '.[dev]'
pip list
- run: mypy --install-types --non-interactive
Original file line number Diff line number Diff line change
Expand Up @@ -280,8 +280,8 @@ def wrapped_func(*args: Any, **kwargs: Any) -> Optional[Any]:
)

# return cached value
if self._computed is not None: # type: ignore
return self._computed # type: ignore
if self._computed is not None:
return self._computed
self._computed = compute(*args, **kwargs)
return self._computed

Expand Down