diff --git a/.github/workflows/type_completeness_test.yml b/.github/workflows/type_completeness_test.yml index 47c79bf..662ca60 100644 --- a/.github/workflows/type_completeness_test.yml +++ b/.github/workflows/type_completeness_test.yml @@ -40,6 +40,7 @@ jobs: git checkout ${{ github.base_ref }} pip install . -U pyright --verifytypes telegram --ignoreexternal --outputjson > base.json || true + pyright --verifytypes telegram --ignoreexternal > base.readable || true - name: Compare Completeness uses: jannekem/run-python-script-action@v1 @@ -60,6 +61,9 @@ jobs: if base == 0: text = f"Something is broken in the workflow. Reported type completeness is 0. 💥" set_summary(text) + print("pyright report for base branch:") + print(Path("base.readable").read_text(encoding="utf-8")) + print("\n\npyright report for PR branch:") print(Path("pr.readable").read_text(encoding="utf-8")) error(text) exit(1) diff --git a/aiorem/_resourcemanager.py b/aiorem/_resourcemanager.py index 4cc4750..7da57b2 100644 --- a/aiorem/_resourcemanager.py +++ b/aiorem/_resourcemanager.py @@ -8,7 +8,9 @@ class AbstractResourceManager( - contextlib.AbstractAsyncContextManager, contextlib.AsyncContextDecorator, abc.ABC + contextlib.AbstractAsyncContextManager["AbstractResourceManager"], + contextlib.AsyncContextDecorator, + abc.ABC, ): """ Abstract base class for asynchronous resource managers.