Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
13 changes: 11 additions & 2 deletions .github/workflows/unittest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,19 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
pyver: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v3
- name: run unittest
with:
python-version: ${{ matrix.pyver }}
- name: Install
run: |
python -m unittest discover tests
python -m pip install coverage
- name: Run unittest
run: |
coverage run -m unittest discover tests
coverage report
4 changes: 2 additions & 2 deletions drow/parser.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Union, TypeVar, Generic
from typing import Union, TypeVar, Generic, TypeAlias

from .annotation import (
SuccessResponse, ErrorResponse,
Expand All @@ -24,7 +24,7 @@
SuccessResponse[VectorData],
ErrorResponse,
]
type QueryResult[T] = Union[
QueryResult: TypeAlias = Union[
ScalarPoint[T], StringPoint, InstantVector[T],
]
QueryRangeResponse = Union[
Expand Down
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ classifiers = [
"Programming Language :: Python :: 3",
]

requires-python = ">=3.10"
# typing.NotRequired is added in Python 3.11.
requires-python = ">=3.11"

readme = "README.md"

Expand Down