Skip to content

Commit 4b8ebbf

Browse files
committed
Fix style issues. Rebase did not trigger pre-commit.
1 parent 4686736 commit 4b8ebbf

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

marshmallow_dataclass/__init__.py

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,11 @@ class User:
4444
import warnings
4545
from enum import Enum
4646
from functools import lru_cache, partial
47-
from typing import Any, Callable, Dict, FrozenSet, List, Mapping
48-
from typing import NewType as typing_NewType
4947
from typing import (
5048
Any,
5149
Callable,
5250
Dict,
51+
FrozenSet,
5352
Generic,
5453
List,
5554
Mapping,
@@ -151,7 +150,8 @@ def dataclass(
151150
frozen: bool = False,
152151
base_schema: Optional[Type[marshmallow.Schema]] = None,
153152
cls_frame: Optional[types.FrameType] = None,
154-
) -> Type[_U]: ...
153+
) -> Type[_U]:
154+
...
155155

156156

157157
@overload
@@ -164,7 +164,8 @@ def dataclass(
164164
frozen: bool = False,
165165
base_schema: Optional[Type[marshmallow.Schema]] = None,
166166
cls_frame: Optional[types.FrameType] = None,
167-
) -> Callable[[Type[_U]], Type[_U]]: ...
167+
) -> Callable[[Type[_U]], Type[_U]]:
168+
...
168169

169170

170171
# _cls should never be specified by keyword, so start it with an
@@ -223,13 +224,15 @@ def decorator(cls: Type[_U], stacklevel: int = 1) -> Type[_U]:
223224

224225

225226
@overload
226-
def add_schema(_cls: Type[_U]) -> Type[_U]: ...
227+
def add_schema(_cls: Type[_U]) -> Type[_U]:
228+
...
227229

228230

229231
@overload
230232
def add_schema(
231233
base_schema: Optional[Type[marshmallow.Schema]] = None,
232-
) -> Callable[[Type[_U]], Type[_U]]: ...
234+
) -> Callable[[Type[_U]], Type[_U]]:
235+
...
233236

234237

235238
@overload
@@ -238,7 +241,8 @@ def add_schema(
238241
base_schema: Optional[Type[marshmallow.Schema]] = None,
239242
cls_frame: Optional[types.FrameType] = None,
240243
stacklevel: int = 1,
241-
) -> Type[_U]: ...
244+
) -> Type[_U]:
245+
...
242246

243247

244248
def add_schema(_cls=None, base_schema=None, cls_frame=None, stacklevel=1):
@@ -289,7 +293,8 @@ def class_schema(
289293
*,
290294
globalns: Optional[Dict[str, Any]] = None,
291295
localns: Optional[Dict[str, Any]] = None,
292-
) -> Type[marshmallow.Schema]: ...
296+
) -> Type[marshmallow.Schema]:
297+
...
293298

294299

295300
@overload
@@ -299,7 +304,8 @@ def class_schema(
299304
clazz_frame: Optional[types.FrameType] = None,
300305
*,
301306
globalns: Optional[Dict[str, Any]] = None,
302-
) -> Type[marshmallow.Schema]: ...
307+
) -> Type[marshmallow.Schema]:
308+
...
303309

304310

305311
def class_schema(

0 commit comments

Comments
 (0)