Skip to content

Commit c443924

Browse files
gtaylorilevkivskyi
authored andcommitted
Annotate orm.mapper.validates (#111)
1 parent 5263d3c commit c443924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlalchemy-stubs/orm/mapper.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
from typing import Any, Optional
1+
from typing import Any, Optional, Callable
22
from .interfaces import InspectionAttr
33
from .base import class_mapper as class_mapper
44

@@ -94,7 +94,7 @@ class Mapper(InspectionAttr):
9494

9595
def configure_mappers(): ...
9696
def reconstructor(fn): ...
97-
def validates(*names, **kw): ...
97+
def validates(*names, **kw) -> Callable[..., Any]: ...
9898

9999
class _ColumnMapping(dict):
100100
mapper: Any = ...

0 commit comments

Comments
 (0)