@@ -209,8 +209,8 @@ def __init__(
209209 """
210210 self .signature = signature
211211 self .binding = binding
212- self .varkwd = varkwd
213- self .varpos = varpos
212+ self .varkwd = varkwd or unmarshals . noop ()
213+ self .varpos = varpos or unmarshals . noop ()
214214 self .startpos = startpos
215215
216216 def __repr__ (self ):
@@ -219,7 +219,7 @@ def __repr__(self):
219219 @abc .abstractmethod
220220 def __call__ (
221221 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
222- ) -> tuple [P .args , P .kwargs ]:
222+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
223223 """Inspect the given `args` and `kwargs` and unmarshal them.
224224
225225 Args:
@@ -231,7 +231,7 @@ def __call__(
231231class AnyParamKindBinding (AbstractBinding [P ], tp .Generic [P ]):
232232 def __call__ (
233233 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
234- ) -> tuple [P .args , P .kwargs ]:
234+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
235235 # Localize key attributes
236236 binding = self .binding
237237 varpos : unmarshals .AbstractUnmarshaller = self .varpos
@@ -254,7 +254,7 @@ def __call__(
254254class PosArgsKwargsBinding (AbstractBinding [P ], tp .Generic [P ]):
255255 def __call__ (
256256 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
257- ) -> tuple [P .args , P .kwargs ]:
257+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
258258 # Localize key attributes
259259 binding = self .binding
260260 varpos : unmarshals .AbstractUnmarshaller = self .varpos
@@ -275,7 +275,7 @@ def __call__(
275275class PosKwdKwargsBinding (AbstractBinding [P ], tp .Generic [P ]):
276276 def __call__ (
277277 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
278- ) -> tuple [P .args , P .kwargs ]:
278+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
279279 # Localize key attributes
280280 binding = self .binding
281281 varkwd : unmarshals .AbstractUnmarshaller = self .varkwd
@@ -289,7 +289,7 @@ def __call__(
289289class PosKwdArgsBinding (AbstractBinding [P ], tp .Generic [P ]):
290290 def __call__ (
291291 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
292- ) -> tuple [P .args , P .kwargs ]:
292+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
293293 # Localize key attributes
294294 binding = self .binding
295295 varpos : unmarshals .AbstractUnmarshaller = self .varpos
@@ -311,7 +311,7 @@ def __call__(
311311class PosKwargsBinding (AbstractBinding [P ], tp .Generic [P ]):
312312 def __call__ (
313313 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
314- ) -> tuple [P .args , P .kwargs ]:
314+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
315315 # Localize key attributes
316316 binding = self .binding
317317 varkwd : unmarshals .AbstractUnmarshaller = self .varkwd
@@ -325,7 +325,7 @@ def __call__(
325325class PosKwdBinding (AbstractBinding [P ], tp .Generic [P ]):
326326 def __call__ (
327327 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
328- ) -> tuple [P .args , P .kwargs ]:
328+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
329329 # Localize key attributes
330330 binding = self .binding
331331 # Unmarshal the args
@@ -338,7 +338,7 @@ def __call__(
338338class PosArgsBinding (AbstractBinding [P ], tp .Generic [P ]):
339339 def __call__ (
340340 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
341- ) -> tuple [P .args , P .kwargs ]:
341+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
342342 # Localize key attributes
343343 binding = self .binding
344344 varpos : unmarshals .AbstractUnmarshaller = self .varpos
@@ -357,7 +357,7 @@ def __call__(
357357class PosBinding (AbstractBinding [P ], tp .Generic [P ]):
358358 def __call__ (
359359 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
360- ) -> tuple [P .args , P .kwargs ]:
360+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
361361 # Localize key attributes
362362 binding = self .binding
363363 # Unmarshal the args
@@ -368,7 +368,7 @@ def __call__(
368368class KwdArgsKwargsBinding (AbstractBinding [P ], tp .Generic [P ]):
369369 def __call__ (
370370 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
371- ) -> tuple [P .args , P .kwargs ]:
371+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
372372 # Localize the key attributes
373373 binding = self .binding
374374 varpos : unmarshals .AbstractUnmarshaller = self .varpos
@@ -383,7 +383,7 @@ def __call__(
383383class KwdArgsBinding (AbstractBinding [P ], tp .Generic [P ]):
384384 def __call__ (
385385 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
386- ) -> tuple [P .args , P .kwargs ]:
386+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
387387 # Localize the key attributes
388388 binding = self .binding
389389 varpos : unmarshals .AbstractUnmarshaller = self .varpos
@@ -397,7 +397,7 @@ def __call__(
397397class KwdKwargsBinding (AbstractBinding [P ], tp .Generic [P ]):
398398 def __call__ (
399399 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
400- ) -> tuple [P .args , P .kwargs ]:
400+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
401401 binding = self .binding
402402 varkwd : unmarshals .AbstractUnmarshaller = self .varkwd
403403 # Unmarshal the keyword arguments.
@@ -408,7 +408,7 @@ def __call__(
408408class KwdBinding (AbstractBinding [P ], tp .Generic [P ]):
409409 def __call__ (
410410 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
411- ) -> tuple [P .args , P .kwargs ]:
411+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
412412 binding = self .binding
413413 # Unmarshal the keyword arguments.
414414 umkwargs = {k : binding [k ](v ) if k in binding else k for k , v in kwargs .items ()}
@@ -418,7 +418,7 @@ def __call__(
418418class ArgsKwargsBinding (AbstractBinding [P ], tp .Generic [P ]):
419419 def __call__ (
420420 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
421- ) -> tuple [P .args , P .kwargs ]:
421+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
422422 # Localize the key attributes
423423 varpos : unmarshals .AbstractUnmarshaller = self .varpos
424424 varkwd : unmarshals .AbstractUnmarshaller = self .varkwd
@@ -432,7 +432,7 @@ def __call__(
432432class KwargsBinding (AbstractBinding [P ], tp .Generic [P ]):
433433 def __call__ (
434434 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
435- ) -> tuple [P .args , P .kwargs ]:
435+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
436436 # Localize the key attributes
437437 varkwd : unmarshals .AbstractUnmarshaller = self .varkwd
438438 # Unmarshal the keyword arguments.
@@ -443,7 +443,7 @@ def __call__(
443443class ArgsBinding (AbstractBinding [P ], tp .Generic [P ]):
444444 def __call__ (
445445 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
446- ) -> tuple [P .args , P .kwargs ]:
446+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
447447 # Localize the key attributes
448448 varpos : unmarshals .AbstractUnmarshaller = self .varpos
449449 # Unmarshal the positional arguments.
@@ -454,7 +454,7 @@ def __call__(
454454class PosOrKwdBinding (AbstractBinding [P ], tp .Generic [P ]):
455455 def __call__ (
456456 self , args : tuple [tp .Any ], kwargs : dict [str , tp .Any ]
457- ) -> tuple [P .args , P .kwargs ]:
457+ ) -> tuple [P .args , P .kwargs ]: # type: ignore[valid-type]
458458 # Localize the key attributes
459459 binding = self .binding
460460 # Unmarshal the positional args.
0 commit comments