0

I've stumbled upon the following lines in the examples of the pymunk library, and I don't understand what the c: pymunk[...] line does, I've never seen this in python before?

box_offset = 0, 0
b1 = add_ball(space, (50, 60), box_offset)
b2 = add_ball(space, (150, 60), box_offset)
c: pymunk.Constraint = pymunk.PinJoint(b1, b2, (20, 0), (-20, 0))
txts[box_offset] = inspect.getdoc(c)
space.add(c)
jblugagne
  • 27
  • 7

0 Answers0