(self, o: mypy.nodes.ParamSpecExpr)
| 553 | return self.dump(a, o) |
| 554 | |
| 555 | def visit_paramspec_expr(self, o: mypy.nodes.ParamSpecExpr) -> str: |
| 556 | import mypy.types |
| 557 | |
| 558 | a: list[Any] = [] |
| 559 | if o.variance == mypy.nodes.COVARIANT: |
| 560 | a += ["Variance(COVARIANT)"] |
| 561 | if o.variance == mypy.nodes.CONTRAVARIANT: |
| 562 | a += ["Variance(CONTRAVARIANT)"] |
| 563 | if not mypy.types.is_named_instance(o.upper_bound, "builtins.object"): |
| 564 | a += [f"UpperBound({self.stringify_type(o.upper_bound)})"] |
| 565 | return self.dump(a, o) |
| 566 | |
| 567 | def visit_type_var_tuple_expr(self, o: mypy.nodes.TypeVarTupleExpr) -> str: |
| 568 | import mypy.types |
nothing calls this directly
no test coverage detected