File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ _U = TypeVar("_U")
40
40
41
41
_TE = TypeVar ("_TE" , bound = TypeEngine [Any ])
42
42
_NFE = TypeVar ("_NFE" , bound = NativeForEmulated )
43
+ _UDT = TypeVar ("_UDT" , bound = UserDefinedType [Any ])
43
44
_TD = TypeVar ("_TD" , bound = TypeDecorator [Any ])
44
45
_VT = TypeVar ("_VT" , bound = Variant [Any ])
45
46
@@ -104,10 +105,10 @@ class TypeEngine(Traversible, Generic[_T]):
104
105
105
106
class VisitableCheckKWArg (util .EnsureKWArgType , TraversibleType ): ...
106
107
107
- class UserDefinedType :
108
+ class UserDefinedType ( TypeEngine [ _T ], metaclass = VisitableCheckKWArg ) :
108
109
__visit_name__ : str = ...
109
110
ensure_kwarg : str = ...
110
- def coerce_compared_value (self , op : Any , value : Any ) -> Any : ...
111
+ def coerce_compared_value (self : _UDT , op : Any , value : Any ) -> _UDT : ...
111
112
112
113
class Emulated :
113
114
def adapt_to_emulated (self , impltype : Any , ** kw : Any ) -> Any : ...
You can’t perform that action at this time.
0 commit comments