isinstance(instance, SubClass)
loses type instead of narrowing
#24
Labels
addressed in next version
Issue is fixed and will appear in next published version
Given an
instance
of aSuperClass
, I would expectisinstance(instance, SubClass)
to narrow the type ofinstance
toSubClass
in the following branch. Instead, the type appears to have been lost and replaced withNoneType
.For a slightly smaller example, we get the same error narrowing from the base
object
type:The text was updated successfully, but these errors were encountered: