What error is this? Python 3 grasshopper, problem with IsPoint

image

As the title says. How do i correct this error?

import Rhino
a = g.ObjectType == Rhino.DocObjects.ObjectType.Point

IsPoint.gh (8.1 KB)