Skip to content

Commit

Permalink
Use PEP 585 in types.py
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Dec 30, 2022
1 parent 9507dfc commit cfa54e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/marshmallow/types.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
This module is provisional. Types may be modified, added, and removed between minor releases.
"""
from __future__ import annotations

from collections import abc
import typing

StrSequenceOrSet = typing.Union[typing.Sequence[str], typing.AbstractSet[str]]
Tag = typing.Union[str, typing.Tuple[str, bool]]
StrSequenceOrSet = typing.Union[abc.Sequence[str], abc.Set[str]]
Tag = typing.Union[str, tuple[str, bool]]
Validator = typing.Callable[[typing.Any], typing.Any]

0 comments on commit cfa54e8

Please sign in to comment.