@@ -99,15 +99,15 @@ class SeparateClassMethod(object):
9999
100100 def __init__ (
101101 self ,
102- imeth = None , # type: typing.Optional[typing.Callable[..., typing.Any] ]
103- cmeth = None , # type: typing.Optional[typing.Callable[..., typing.Any] ]
102+ imeth = None , # type: typing.Optional[typing.Callable]
103+ cmeth = None , # type: typing.Optional[typing.Callable]
104104 ): # type: (...) -> None
105105 """Separate class method and instance methods.
106106
107107 :param imeth: Instance method
108- :type imeth: typing.Optional[typing.Callable[..., typing.Any] ]
108+ :type imeth: typing.Optional[typing.Callable]
109109 :param cmeth: Class method
110- :type cmeth: typing.Optional[typing.Callable[..., typing.Any] ]
110+ :type cmeth: typing.Optional[typing.Callable]
111111 """
112112 self .__instance_method = imeth
113113 self .__class_method = cmeth
@@ -116,10 +116,10 @@ def __get__(
116116 self ,
117117 instance , # type: typing.Optional[typing.Any]
118118 owner # type: typing.Any
119- ): # type: (...) -> typing.Callable[..., typing.Any]
119+ ): # type: (...) -> typing.Callable
120120 """Get descriptor.
121121
122- :rtype: typing.Callable[..., typing.Any]
122+ :rtype: typing.Callable
123123 :raises: AttributeError
124124 """
125125 if instance is None or self .__instance_method is None :
@@ -134,51 +134,51 @@ def class_method(*args, **kwargs): # type: (typing.Tuple, typing.Dict) -> typin
134134 return class_method
135135
136136 @six .wraps (self .__instance_method )
137- def instance_method (* args , ** kwargs ): # type: (typing.Tuple , typing.Dict ) -> typing.Any
137+ def instance_method (* args , ** kwargs ): # type: (typing.Any , typing.Any ) -> typing.Any
138138 """Bound instance method."""
139139 return self .__instance_method (instance , * args , ** kwargs ) # type: ignore
140140
141141 return instance_method
142142
143143 def instance_method (
144144 self ,
145- imeth # type: typing.Optional[typing.Callable[..., typing.Any] ]
145+ imeth # type: typing.Optional[typing.Callable]
146146 ): # type: (...) -> SeparateClassMethod
147147 """Descriptor to change instance method.
148148
149149 :param imeth: New instance method.
150- :type imeth: typing.Optional[typing.Callable[..., typing.Any] ]
150+ :type imeth: typing.Optional[typing.Callable]
151151 :rtype: SeparateClassMethod
152152 """
153153 self .__instance_method = imeth
154154 return self
155155
156156 def class_method (
157157 self ,
158- cmeth # type: typing.Optional[typing.Callable[..., typing.Any] ]
158+ cmeth # type: typing.Optional[typing.Callable]
159159 ): # type: (...) -> SeparateClassMethod
160160 """Descriptor to change class method.
161161
162162 :type cmeth: New class method.
163- :type cmeth: typing.Optional[typing.Callable[..., typing.Any] ]
163+ :type cmeth: typing.Optional[typing.Callable]
164164 :rtype: SeparateClassMethod
165165 """
166166 self .__class_method = cmeth
167167 return self
168168
169169 @property
170- def imeth (self ): # type: () -> typing.Optional[typing.Callable[..., typing.Any] ]
170+ def imeth (self ): # type: () -> typing.Optional[typing.Callable]
171171 """Instance method instance.
172172
173- :rtype: typing.Optional[typing.Callable[..., typing.Any] ]
173+ :rtype: typing.Optional[typing.Callable]
174174 """
175175 return self .__instance_method
176176
177177 @property
178- def cmeth (self ): # type: () -> typing.Optional[typing.Callable[..., typing.Any] ]
178+ def cmeth (self ): # type: () -> typing.Optional[typing.Callable]
179179 """Class method instance.
180180
181- :rtype: typing.Optional[typing.Callable[..., typing.Any] ]
181+ :rtype: typing.Optional[typing.Callable]
182182 """
183183 return self .__class_method
184184
0 commit comments