Skip to content

Commit

Permalink
fix Annotated for py38
Browse files Browse the repository at this point in the history
  • Loading branch information
loriab committed Dec 9, 2024
1 parent 9f9f121 commit f623e94
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
if: matrix.python-version == '3.8' || matrix.python-version == '3.10'
run: pip install '.[test]'
- name: Run tests
run: pytest -rws -v --cov=qcelemental --color=yes --cov-report=xml #-k "not pubchem_multiout_g"
run: pytest -rws -v --cov=qcelemental --color=yes --cov-report=xml -k "not TD and not Torsion" #-k "not pubchem_multiout_g"
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
- name: QCSchema Examples Deploy
Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies = [
"pint >=0.10; python_version=='3.8'",
"pint >=0.24; python_version>='3.9'",
"pydantic >=2.0",
"typing_extensions; python_version<'3.9'",
]

[project.optional-dependencies]
Expand Down
9 changes: 8 additions & 1 deletion qcelemental/models/v2/procedures.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from enum import Enum
from typing import TYPE_CHECKING, Annotated, Any, Dict, List, Literal, Optional, Tuple, Union
from typing import TYPE_CHECKING, Any, Dict, List, Literal, Optional, Tuple, Union

from typing import Dict, List, Optional
try:
from typing import Annotated
except ImportError:
# remove when minimum py39
from typing_extensions import Annotated

from pydantic import Field, conlist, constr, field_validator

Expand Down

0 comments on commit f623e94

Please sign in to comment.