Skip to content

Commit

Permalink
3.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
scarlehoff committed Mar 1, 2024
1 parent c5e6fcd commit 1a8bf48
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions validphys2/src/validphys/process_options.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
Only variables included in the `_Vars` enum and processes included in the ``Processes`` dictionary are allowed.
"""
import dataclasses
from typing import Callable, Optional, Tuple
from typing import Callable, Optional, Tuple, Union

import numpy as np
from validobj.custom import Parser
Expand Down Expand Up @@ -254,5 +254,5 @@ def _displusjet_xq2map(kin_dict):


@Parser
def ValidProcess(process_name) -> _Process | str:
def ValidProcess(process_name) -> Union[_Process, str]:
return PROCESSES.get(process_name.upper(), process_name.upper())

0 comments on commit 1a8bf48

Please sign in to comment.