Skip to content

Commit 8ad05e4

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 271b97e commit 8ad05e4

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

src/marshmallow_sqlalchemy/convert.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
import functools
44
import inspect
55
import uuid
6+
from collections.abc import Callable
67
from typing import (
78
TYPE_CHECKING,
89
Any,
9-
Callable,
1010
Literal,
11-
Union,
1211
cast,
1312
overload,
1413
)
@@ -17,7 +16,7 @@
1716
try:
1817
from typing import TypeAlias, TypeGuard
1918
except ImportError:
20-
from typing_extensions import TypeAlias, TypeGuard
19+
from typing import TypeAlias, TypeGuard
2120

2221
import marshmallow as ma
2322
import sqlalchemy as sa
@@ -40,7 +39,7 @@
4039
_FieldPartial: TypeAlias = Callable[[], fields.Field]
4140
# TODO: Use more specific type for second argument
4241
_FieldClassFactory: TypeAlias = Callable[
43-
["ModelConverter", Any], Union[type[fields.Field], _FieldPartial]
42+
["ModelConverter", Any], type[fields.Field] | _FieldPartial
4443
]
4544

4645

0 commit comments

Comments
 (0)