Skip to content

Commit bc2b79c

Browse files
committed
Update tests for python 3.12
1 parent 1ace718 commit bc2b79c

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

celerpy/cli.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
# Copyright 2024 UT-Battelle, LLC, and other Celeritas developers.
22
# See the top-level LICENSE file for details.
33
# SPDX-License-Identifier: Apache-2.0
4-
from typing import Optional
4+
from typing import Annotated, Optional
55

66
import typer
77
from pydantic import ValidationError
88
from rich import print as rprint
9-
from typing_extensions import Annotated
109

1110
app = typer.Typer()
1211

celerpy/model.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""Manage models used for JSON I/O with Celeritas."""
55

66
from enum import Enum
7-
from typing import Annotated, List, Literal, Optional
7+
from typing import Annotated, Literal, Optional
88

99
from pydantic import (
1010
BaseModel,
@@ -129,7 +129,7 @@ class TraceInput(TraceSetup):
129129
class TraceOutput(_Model):
130130
trace: TraceSetup
131131
image: ImageParams
132-
volumes: Optional[List[str]] = None
132+
volumes: Optional[list[str]] = None
133133
sizeof_int: PositiveInt
134134

135135

0 commit comments

Comments
 (0)