Skip to content

Commit

Permalink
Python 3.9 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
tovrstra committed Jun 22, 2024
1 parent 21410fd commit 2e45c2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions iodata/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"""Utility functions module."""

import warnings
from typing import TextIO
from typing import Optional, TextIO, Union

import attrs
import numpy as np
Expand Down Expand Up @@ -132,8 +132,8 @@ class LoadError(Exception):
def __init__(
self,
message,
file: str | LineIterator | TextIO | None = None,
lineno: int | None = None,
file: Optional[Union[str, LineIterator, TextIO]] = None,
lineno: Optional[int] = None,
):
super().__init__(message)
# Get the extra info
Expand Down

0 comments on commit 2e45c2d

Please sign in to comment.