MCPcopy Create free account
hub / github.com/Mrinank-Bhowmick/python-beginner-projects / Empty

Class Empty

projects/Neurons/main.py:19–25  ·  view source on GitHub ↗

String subclass to return character representing empty space.

Source from the content-addressed store, hash-verified

17
18
19class Empty(str):
20 """String subclass to return character representing empty space."""
21
22 CHAR = " "
23
24 def __new__(cls) -> str:
25 return str.__new__(cls, cls.CHAR)
26
27
28class Neuron(str):

Callers 2

__init__Method · 0.70
tickMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected