File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -4621,11 +4621,15 @@ typenode_origin_args_metadata(
4621
4621
* abstract -> concrete mapping. If present, this is an unparametrized
4622
4622
* collection of some form. This helps avoid compatibility issues in
4623
4623
* Python 3.8, where unparametrized collections still have __args__. */
4624
- origin = PyDict_GetItem (state->mod->concrete_types, t);
4624
+ origin = PyDict_GetItemWithError (state->mod->concrete_types, t);
4625
4625
if (origin != NULL) {
4626
4626
Py_INCREF(origin);
4627
4627
break;
4628
4628
}
4629
+ else {
4630
+ /* Ignore all errors in this initial check */
4631
+ PyErr_Clear();
4632
+ }
4629
4633
4630
4634
/* If `t` is a type instance, no need to inspect further */
4631
4635
if (PyType_CheckExact(t)) {
Original file line number Diff line number Diff line change 12
12
markers =
13
13
mypy
14
14
pyright
15
+ filterwarnings =
16
+ error
15
17
16
18
[versioneer]
17
19
VCS = git
You can’t perform that action at this time.
0 commit comments