-
Prevent returning an empty list for
ClassDef.slots()
when the mro list contains one class & it is notobject
.Refs PyCQA/pylint#5099
-
Prevent a crash when inferring calls to
str.format
with inferred arguments
that would be invalid.Closes #1856
-
Infer the
length
argument of therandom.sample
function.Refs PyCQA/pylint#7706
-
Catch
ValueError
when indexing some builtin containers and sequences during inference.Closes #1843