Skip to content

Commit

Permalink
Use Py3.9-compliant typing
Browse files Browse the repository at this point in the history
  • Loading branch information
CasperWA committed Oct 14, 2023
1 parent 02ae46e commit 8cc0dc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions optimade/models/types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Annotated, Optional
from typing import Annotated, Optional, Union

from pydantic import Field

Expand All @@ -23,4 +23,4 @@

AnnotatedType = type(ChemicalSymbol)
OptionalType = type(Optional[str])
UnionType = type(str | int)
UnionType = type(Union[str, int])

0 comments on commit 8cc0dc4

Please sign in to comment.