Skip to content

Commit

Permalink
Fixup py 38 type hints for mps friendly (#33128)
Browse files Browse the repository at this point in the history
Fixup py 38
  • Loading branch information
muellerzr authored Aug 26, 2024
1 parent 26f043b commit 9578c25
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/transformers/pytorch_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
from __future__ import annotations

import inspect
from typing import Callable, List, Optional, Set, Tuple, Union

Expand Down

0 comments on commit 9578c25

Please sign in to comment.