File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed
Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -264,12 +264,6 @@ PyContextVar_Set(PyObject *ovar, PyObject *val)
264264 ENSURE_ContextVar (ovar , NULL )
265265 PyContextVar * var = (PyContextVar * )ovar ;
266266
267- if (!PyContextVar_CheckExact (var )) {
268- PyErr_SetString (
269- PyExc_TypeError , "an instance of ContextVar was expected" );
270- return NULL ;
271- }
272-
273267 PyContext * ctx = context_get ();
274268 if (ctx == NULL ) {
275269 return NULL ;
@@ -979,12 +973,6 @@ static PyObject *
979973_contextvars_ContextVar_get_impl (PyContextVar * self , PyObject * default_value )
980974/*[clinic end generated code: output=0746bd0aa2ced7bf input=30aa2ab9e433e401]*/
981975{
982- if (!PyContextVar_CheckExact (self )) {
983- PyErr_SetString (
984- PyExc_TypeError , "an instance of ContextVar was expected" );
985- return NULL ;
986- }
987-
988976 PyObject * val ;
989977 if (PyContextVar_Get ((PyObject * )self , default_value , & val ) < 0 ) {
990978 return NULL ;
You can’t perform that action at this time.
0 commit comments