MCPcopy
hub / github.com/sqlalchemy/sqlalchemy / __init__

Method __init__

examples/space_invaders/space_invaders.py:71–75  ·  view source on GitHub ↗
(self, name, img, alt=None)

Source from the content-addressed store, hash-verified

69 __mapper_args__ = {"polymorphic_on": type}
70
71 def __init__(self, name, img, alt=None):
72 self.name = name
73 self.data, self.width, self.height = self._encode_glyph(img)
74 if alt is not None:
75 self.alt_data, alt_w, alt_h = self._encode_glyph(alt)
76
77 def _encode_glyph(self, img):
78 """Receive a textual description of the glyph and

Callers

nothing calls this directly

Calls 1

_encode_glyphMethod · 0.95

Tested by

no test coverage detected