-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve type annotations in core functions (#850)
- Loading branch information
Showing
34 changed files
with
687 additions
and
358 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -113,6 +113,22 @@ jobs: | |
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install -e .[ci,dev] | ||
# NOTE: Unfortunately the gain of image caching is too small, | ||
# and even it increases the latency of Linux jobs. :( | ||
# - name: Cache Docker images | ||
# uses: ScribeMD/[email protected] | ||
# with: | ||
# key: docker-${{ runner.os }} | ||
- name: Prepare Docker images (Linux) | ||
if: ${{ runner.os == 'Linux' }} | ||
run: | | ||
docker pull python:3.12-alpine | ||
- name: Prepare Docker images (Windows) | ||
if: ${{ runner.os == 'Windows' }} | ||
# Unfortunately, there is no slim version for Windows. | ||
# This may take more than 10 minutes as the image size is a few gigabytes. | ||
run: | | ||
docker pull python:3.12 | ||
- name: Start Docker services | ||
if: ${{ matrix.registry == '1' }} | ||
run: | | ||
|
@@ -134,6 +150,9 @@ jobs: | |
path: coverage-unit-${{ matrix.python-version }}-${{ matrix.os }}-${{ matrix.registry }}.xml | ||
if-no-files-found: error | ||
retention-days: 1 | ||
- name: Clean up Docker images produced during tests | ||
run: | | ||
docker image list --filter 'reference=aiodocker-*' --format '{{.Repository}}:{{.Tag}}' | xargs -r docker rmi | ||
check: # This job does nothing and is only used for the branch protection | ||
name: ✅ Ensure the required checks passing | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Add more type annotations to the core APIs and retire codes for Python 3.7 compatibility |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
from __future__ import annotations | ||
|
||
import asyncio | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.