Skip to content

Commit

Permalink
Fix typing issue due to try-except
Browse files Browse the repository at this point in the history
  • Loading branch information
MilesCranmer committed Dec 31, 2023
1 parent bcf3dff commit b8fd4cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pysr/sr.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
from pathlib import Path
from typing import Callable, Dict, List, Optional, Tuple, Union

try:
if sys.version_info >= (3, 8):
from typing import Literal
except ImportError:
else:
from typing_extensions import Literal

import numpy as np
Expand Down

0 comments on commit b8fd4cd

Please sign in to comment.