File tree Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Expand file tree Collapse file tree 4 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -95,8 +95,8 @@ column_property = ColumnProperty
95
95
composite = CompositeProperty
96
96
97
97
def backref (name : Any , ** kwargs : Any ): ...
98
- def deferred (* columns : Any , ** kw : Any ): ...
99
- def query_expression (default_expr : Any = ...): ...
98
+ def deferred (* columns : Any , ** kw : Any ) -> ColumnProperty : ...
99
+ def query_expression (default_expr : Any = ...) -> ColumnProperty : ...
100
100
101
101
mapper = Mapper
102
102
synonym = SynonymProperty
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ class DeclarativeMeta(type):
21
21
def __setattr__ (cls , key : Any , value : Any ) -> None : ...
22
22
def __delattr__ (cls , key : Any ) -> None : ...
23
23
metadata : MetaData
24
+ registry : "registry"
24
25
25
26
def synonym_for (name : Any , map_column : bool = ...): ...
26
27
Original file line number Diff line number Diff line change 1
1
from typing import Any
2
2
from typing import Optional
3
+ from typing import Type
3
4
from typing import Union
4
5
5
6
from . import attributes as attributes
@@ -44,7 +45,7 @@ class RelationshipProperty(StrategizedProperty):
44
45
sync_backref : Any = ...
45
46
lazy : Any = ...
46
47
single_parent : Any = ...
47
- collection_class : Any = ...
48
+ collection_class : Optional [ Type ] = ...
48
49
passive_deletes : Any = ...
49
50
cascade_backrefs : Any = ...
50
51
passive_updates : Any = ...
Original file line number Diff line number Diff line change @@ -96,8 +96,8 @@ class _FunctionGenerator:
96
96
def __getattr__ (self , name : Any ): ...
97
97
def __call__ (self , * c : Any , ** kwargs : Any ): ...
98
98
99
- func : Any
100
- modifier : Any
99
+ func : _FunctionGenerator = ...
100
+ modifier : _FunctionGenerator = ...
101
101
102
102
class Function (FunctionElement ):
103
103
__visit_name__ : str = ...
You can’t perform that action at this time.
0 commit comments