Skip to content

Commit 46fd94e

Browse files
committed
Use public type names in typing AC vectorcall errors
1 parent 2581acd commit 46fd94e

2 files changed

Lines changed: 20 additions & 20 deletions

File tree

‎Objects/clinic/typevarobject.c.h‎

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎Objects/typevarobject.c‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,13 @@
1111
/*[clinic input]
1212
class typevar "typevarobject *" "&_PyTypeVar_Type"
1313
class paramspec "paramspecobject *" "&_PyParamSpec_Type"
14-
class paramspecargs "paramspecattrobject *" "&_PyParamSpecArgs_Type"
15-
class paramspeckwargs "paramspecattrobject *" "&_PyParamSpecKwargs_Type"
14+
class ParamSpecArgs "paramspecattrobject *" "&_PyParamSpecArgs_Type"
15+
class ParamSpecKwargs "paramspecattrobject *" "&_PyParamSpecKwargs_Type"
1616
class typevartuple "typevartupleobject *" "&_PyTypeVarTuple_Type"
17-
class typealias "typealiasobject *" "&_PyTypeAlias_Type"
17+
class TypeAliasType "typealiasobject *" "&_PyTypeAlias_Type"
1818
class Generic "PyObject *" "&PyGeneric_Type"
1919
[clinic start generated code]*/
20-
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=aa86741931a0f55c]*/
20+
/*[clinic end generated code: output=da39a3ee5e6b4b0d input=009c4108cbaa37f7]*/
2121

2222
typedef struct {
2323
PyObject_HEAD
@@ -1027,7 +1027,7 @@ paramspecargs_repr(PyObject *self)
10271027
/*[clinic input]
10281028
@vectorcall
10291029
@classmethod
1030-
paramspecargs.__new__ as paramspecargs_new
1030+
ParamSpecArgs.__new__ as paramspecargs_new
10311031
10321032
origin: object
10331033
@@ -1036,7 +1036,7 @@ Create a ParamSpecArgs object.
10361036

10371037
static PyObject *
10381038
paramspecargs_new_impl(PyTypeObject *type, PyObject *origin)
1039-
/*[clinic end generated code: output=9a1463dc8942fe4e input=af38ada22a6b114a]*/
1039+
/*[clinic end generated code: output=9a1463dc8942fe4e input=415d6a7945b33d22]*/
10401040
{
10411041
return (PyObject *)paramspecattr_new(type, origin);
10421042
}
@@ -1109,7 +1109,7 @@ paramspeckwargs_repr(PyObject *self)
11091109
/*[clinic input]
11101110
@vectorcall
11111111
@classmethod
1112-
paramspeckwargs.__new__ as paramspeckwargs_new
1112+
ParamSpecKwargs.__new__ as paramspeckwargs_new
11131113
11141114
origin: object
11151115
@@ -1118,7 +1118,7 @@ Create a ParamSpecKwargs object.
11181118

11191119
static PyObject *
11201120
paramspeckwargs_new_impl(PyTypeObject *type, PyObject *origin)
1121-
/*[clinic end generated code: output=277b11967ebaf4ab input=200fd6f0d3ea40ba]*/
1121+
/*[clinic end generated code: output=277b11967ebaf4ab input=40bc05ed19d5379a]*/
11221122
{
11231123
return (PyObject *)paramspecattr_new(type, origin);
11241124
}
@@ -2123,13 +2123,13 @@ typealias_clear(PyObject *op)
21232123
}
21242124

21252125
/*[clinic input]
2126-
typealias.__reduce__ as typealias_reduce
2126+
TypeAliasType.__reduce__ as typealias_reduce
21272127
21282128
[clinic start generated code]*/
21292129

21302130
static PyObject *
21312131
typealias_reduce_impl(typealiasobject *self)
2132-
/*[clinic end generated code: output=913724f92ad3b39b input=4f06fbd9472ec0f1]*/
2132+
/*[clinic end generated code: output=913724f92ad3b39b input=6538d1f206634f9a]*/
21332133
{
21342134
return Py_NewRef(self->name);
21352135
}
@@ -2155,7 +2155,7 @@ static PyMethodDef typealias_methods[] = {
21552155
/*[clinic input]
21562156
@vectorcall
21572157
@classmethod
2158-
typealias.__new__ as typealias_new
2158+
TypeAliasType.__new__ as typealias_new
21592159
21602160
name: object(subclass_of="&PyUnicode_Type")
21612161
value: object
@@ -2169,7 +2169,7 @@ Create a TypeAliasType.
21692169
static PyObject *
21702170
typealias_new_impl(PyTypeObject *type, PyObject *name, PyObject *value,
21712171
PyObject *type_params, PyObject *qualname)
2172-
/*[clinic end generated code: output=b7f6d9f1c577cd9c input=7245ee7629d55ea9]*/
2172+
/*[clinic end generated code: output=b7f6d9f1c577cd9c input=31d9ae8db4ea742b]*/
21732173
{
21742174
if (type_params != NULL && !PyTuple_Check(type_params)) {
21752175
PyErr_SetString(PyExc_TypeError, "type_params must be a tuple");

0 commit comments

Comments
 (0)