Is a type valid as a *args argument?
(self, typ: Type)
| 6229 | return self.named_type("typing_extensions.TypeAliasType") |
| 6230 | |
| 6231 | def is_valid_var_arg(self, typ: Type) -> bool: |
| 6232 | """Is a type valid as a *args argument?""" |
| 6233 | typ = get_proper_type(typ) |
| 6234 | return isinstance(typ, (TupleType, AnyType, ParamSpecType, UnpackType)) or is_subtype( |
| 6235 | typ, self.chk.named_generic_type("typing.Iterable", [AnyType(TypeOfAny.special_form)]) |
| 6236 | ) |
| 6237 | |
| 6238 | def is_valid_keyword_var_arg(self, typ: Type) -> bool: |
| 6239 | """Is a type valid as a **kwargs argument?""" |
no test coverage detected